
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_CN">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Python文档内容 &#8212; Python 3.7.3 文档</title>
    <link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="_static/language_data.js"></script>
    <script type="text/javascript" src="_static/translations.js"></script>
    
    <script type="text/javascript" src="_static/sidebar.js"></script>
    
    <link rel="search" type="application/opensearchdescription+xml"
          title="在 Python 3.7.3 文档 中搜索"
          href="_static/opensearch.xml"/>
    <link rel="author" title="关于这些文档" href="about.html" />
    <link rel="index" title="索引" href="genindex.html" />
    <link rel="search" title="搜索" href="search.html" />
    <link rel="copyright" title="版权所有" href="copyright.html" />
    <link rel="next" title="Python 有什么新变化？" href="whatsnew/index.html" />
    <link rel="shortcut icon" type="image/png" href="_static/py.png" />
    <link rel="canonical" href="https://docs.python.org/3/contents.html" />
    
    <script type="text/javascript" src="_static/copybutton.js"></script>
    <script type="text/javascript" src="_static/switchers.js"></script>
    
    
    
    <style>
      @media only screen {
        table.full-width-table {
            width: 100%;
        }
      }
    </style>
 

  </head><body>  
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="总目录"
             accesskey="I">索引</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python 模块索引"
             >模块</a> |</li>
        <li class="right" >
          <a href="whatsnew/index.html" title="Python 有什么新变化？"
             accesskey="N">下一页</a> |</li>
        <li><img src="_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="https://www.python.org/">Python</a> &#187;</li>
        <li>
          <span class="language_switcher_placeholder">zh_CN</span>
          <span class="version_switcher_placeholder">3.7.3</span>
          <a href="index.html">文档</a> &#187;
        </li>

    <li class="right">
        

    <div class="inline-search" style="display: none" role="search">
        <form class="inline-search" action="search.html" method="get">
          <input placeholder="快速搜索" type="text" name="q" />
          <input type="submit" value="转向" />
          <input type="hidden" name="check_keywords" value="yes" />
          <input type="hidden" name="area" value="default" />
        </form>
    </div>
    <script type="text/javascript">$('.inline-search').show(0);</script>
         |
    </li>

      </ul>
    </div>    

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="python-documentation-contents">
<h1>Python文档内容<a class="headerlink" href="#python-documentation-contents" title="永久链接至标题">¶</a></h1>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="whatsnew/index.html">Python 有什么新变化？</a><ul>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.7.html">Python 3.7 有什么新变化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#summary-release-highlights">摘要 - 发布重点</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#new-features">新的特性</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-563-postponed-evaluation-of-annotations">PEP 563：延迟的标注求值</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-538-legacy-c-locale-coercion">PEP 538: 传统 C 区域强制转换</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-540-forced-utf-8-runtime-mode">PEP 540: 强制 UTF-8 运行时模式</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-553-built-in-breakpoint">PEP 553: 内置的 <code class="docutils literal notranslate"><span class="pre">breakpoint()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-539-new-c-api-for-thread-local-storage">PEP 539: 用于线程局部存储的新 C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-562-customization-of-access-to-module-attributes">PEP 562: 定制对模块属性的访问</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-564-new-time-functions-with-nanosecond-resolution">PEP 564: 具有纳秒级精度的新时间函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-565-show-deprecationwarning-in-main">PEP 565: 在 <code class="docutils literal notranslate"><span class="pre">__main__</span></code> 中显示 DeprecationWarning</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-560-core-support-for-typing-module-and-generic-types">PEP 560: 对 <code class="docutils literal notranslate"><span class="pre">typing</span></code> 模块和泛型类型的核心支持</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-552-hash-based-pyc-files">PEP 552: 基于哈希值的 .pyc 文件</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pep-545-python-documentation-translations">PEP 545: Python 文档翻译</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#development-runtime-mode-x-dev">开发运行时模式: -X dev</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#new-modules">新增模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#contextvars">contextvars</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#dataclasses">dataclasses</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#importlib-resources">importlib.resources</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#improved-modules">改进的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#argparse">argparse</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#asyncio">asyncio</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#binascii">binascii</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#calendar">calendar</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#compileall">compileall</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#concurrent-futures">concurrent.futures</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#cprofile">cProfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#crypt">crypt</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#datetime">datetime</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#dbm">dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#decimal">decimal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#dis">dis</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#distutils">distutils</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#enum">enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#functools">functools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#gc">gc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#hmac">hmac</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#http-client">http.client</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#http-server">http.server</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#idlelib-and-idle">idlelib 与 IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#importlib">importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#io">io</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#ipaddress">ipaddress</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#itertools">itertools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#locale">locale</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#math">math</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#mimetypes">mimetypes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#msilib">msilib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#multiprocessing">multiprocessing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pathlib">pathlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pdb">pdb</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#py-compile">py_compile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#pydoc">pydoc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#queue">queue</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#re">re</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#signal">signal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#socketserver">socketserver</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#ssl">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#string">string</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#subprocess">subprocess</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#sys">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#time">time</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#tkinter">tkinter</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#tracemalloc">tracemalloc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#types">types</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#unicodedata">unicodedata</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#unittest">unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#unittest-mock">unittest.mock</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#urllib-parse">urllib.parse</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#uu">uu</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#uuid">uuid</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#warnings">warnings</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#xml">xml</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#xml-etree">xml.etree</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#xmlrpc-server">xmlrpc.server</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#zipapp">zipapp</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#zipfile">zipfile</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#c-api-changes">C API 的改变</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#build-changes">构建的改变</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#other-cpython-implementation-changes">其他 CPython 实现的改变</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#deprecated-python-behavior">已弃用的 Python 行为</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#deprecated-python-modules-functions-and-methods">已弃用的 Python 模块、函数和方法</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#aifc">aifc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#whatsnew37-asyncio-deprecated">asyncio</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id3">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id4">dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id5">enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#gettext">gettext</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id6">importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id7">locale</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#macpath">macpath</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#threading">threading</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id8">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id9">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#sunau">sunau</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id10">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#wave">wave</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#deprecated-functions-and-types-of-the-c-api">已弃用的 C API 函数和类型</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#platform-support-removals">平台支持的移除</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#api-and-feature-removals">API 与特性的移除</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#module-removals">移除的模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#windows-only-changes">Windows 专属的改变</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#porting-to-python-3-7">移植到 Python 3.7</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#changes-in-python-behavior">Python 行为的更改</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#changes-in-the-python-api">更改的Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#changes-in-the-c-api">C API 中的改变</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#cpython-bytecode-changes">CPython 字节码的改变</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id12">Windows 专属的改变</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.7.html#id13">其他 CPython 实现的改变</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#notable-changes-in-python-3-7-1">Python 3.7.1 中的重要变化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.7.html#notable-changes-in-python-3-7-2">Python 3.7.2 中的重要变化</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.6.html">Python 3.6 有什么新变化A</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#summary-release-highlights">摘要 - 发布重点</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#new-features">新的特性</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-498-formatted-string-literals">PEP 498: Formatted string literals</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-526-syntax-for-variable-annotations">PEP 526: Syntax for variable annotations</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-515-underscores-in-numeric-literals">PEP 515: Underscores in Numeric Literals</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-525-asynchronous-generators">PEP 525: Asynchronous Generators</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-530-asynchronous-comprehensions">PEP 530: Asynchronous Comprehensions</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-487-simpler-customization-of-class-creation">PEP 487: Simpler customization of class creation</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-487-descriptor-protocol-enhancements">PEP 487: Descriptor Protocol Enhancements</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-519-adding-a-file-system-path-protocol">PEP 519: Adding a file system path protocol</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-495-local-time-disambiguation">PEP 495: Local Time Disambiguation</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-529-change-windows-filesystem-encoding-to-utf-8">PEP 529: Change Windows filesystem encoding to UTF-8</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-528-change-windows-console-encoding-to-utf-8">PEP 528: Change Windows console encoding to UTF-8</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-520-preserving-class-attribute-definition-order">PEP 520: Preserving Class Attribute Definition Order</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-468-preserving-keyword-argument-order">PEP 468: Preserving Keyword Argument Order</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#new-dict-implementation">New <code class="docutils literal notranslate"><span class="pre">dict</span></code> implementation</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pep-523-adding-a-frame-evaluation-api-to-cpython">PEP 523: Adding a frame evaluation API to CPython</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pythonmalloc-environment-variable">PYTHONMALLOC environment variable</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#dtrace-and-systemtap-probing-support">DTrace and SystemTap probing support</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#new-modules">新增模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#secrets">secrets</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#improved-modules">改进的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#array">array</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#ast">ast</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#asyncio">asyncio</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#binascii">binascii</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#cmath">cmath</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#concurrent-futures">concurrent.futures</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#datetime">datetime</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#decimal">decimal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#distutils">distutils</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#email">email</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#encodings">encodings</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#enum">enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#faulthandler">faulthandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#fileinput">fileinput</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#hashlib">hashlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#http-client">http.client</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#idlelib-and-idle">idlelib 与 IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#importlib">importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#inspect">inspect</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#json">json</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#math">math</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#multiprocessing">multiprocessing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pathlib">pathlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pdb">pdb</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pickle">pickle</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pickletools">pickletools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#pydoc">pydoc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#random">random</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#re">re</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#readline">readline</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#rlcompleter">rlcompleter</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#shlex">shlex</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#site">site</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#socketserver">socketserver</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#ssl">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#statistics">statistics</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#struct">struct</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#subprocess">subprocess</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#sys">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#telnetlib">telnetlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#time">time</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#timeit">timeit</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#tkinter">tkinter</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#traceback">traceback</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#tracemalloc">tracemalloc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#typing">typing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#unicodedata">unicodedata</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#unittest-mock">unittest.mock</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#urllib-request">urllib.request</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#urllib-robotparser">urllib.robotparser</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#venv">venv</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#warnings">warnings</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#winreg">winreg</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#winsound">winsound</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#xmlrpc-client">xmlrpc.client</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#zipfile">zipfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#zlib">zlib</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#other-improvements">Other Improvements</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#deprecated">Deprecated</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#new-keywords">New Keywords</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#deprecated-python-behavior">Deprecated Python behavior</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#deprecated-python-modules-functions-and-methods">已弃用的 Python 模块、函数和方法</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#asynchat">asynchat</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#asyncore">asyncore</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#dbm">dbm</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id2">distutils</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#grp">grp</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id3">importlib</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id4">os</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id5">re</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id6">ssl</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id7">tkinter</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.6.html#id8">venv</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#deprecated-functions-and-types-of-the-c-api">已弃用的 C API 函数和类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#deprecated-build-options">Deprecated Build Options</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#removed">移除</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#api-and-feature-removals">API 与特性的移除</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#porting-to-python-3-6">Porting to Python 3.6</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#changes-in-python-command-behavior">Changes in 'python' Command Behavior</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#changes-in-the-python-api">改变了的Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#changes-in-the-c-api">C API 中的改变</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#cpython-bytecode-changes">CPython 字节码的改变</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#notable-changes-in-python-3-6-2">Notable changes in Python 3.6.2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#new-make-regen-all-build-target">New <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">regen-all</span></code> build target</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.6.html#removal-of-make-touch-build-target">Removal of <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">touch</span></code> build target</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#notable-changes-in-python-3-6-4">Notable changes in Python 3.6.4</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#notable-changes-in-python-3-6-5">Notable changes in Python 3.6.5</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.6.html#notable-changes-in-python-3-6-7">Notable changes in Python 3.6.7</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.5.html">Python 3.5 有什么新变化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#summary-release-highlights">摘要 - 发布重点</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#new-features">新的特性</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-492-coroutines-with-async-and-await-syntax">PEP 492 - Coroutines with async and await syntax</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-465-a-dedicated-infix-operator-for-matrix-multiplication">PEP 465 - A dedicated infix operator for matrix multiplication</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-448-additional-unpacking-generalizations">PEP 448 - Additional Unpacking Generalizations</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-461-percent-formatting-support-for-bytes-and-bytearray">PEP 461 - percent formatting support for bytes and bytearray</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-484-type-hints">PEP 484 - Type Hints</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-471-os-scandir-function-a-better-and-faster-directory-iterator">PEP 471 - os.scandir() function -- a better and faster directory iterator</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-475-retry-system-calls-failing-with-eintr">PEP 475: Retry system calls failing with EINTR</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-479-change-stopiteration-handling-inside-generators">PEP 479: Change StopIteration handling inside generators</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-485-a-function-for-testing-approximate-equality">PEP 485: A function for testing approximate equality</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-486-make-the-python-launcher-aware-of-virtual-environments">PEP 486: Make the Python Launcher aware of virtual environments</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-488-elimination-of-pyo-files">PEP 488: Elimination of PYO files</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pep-489-multi-phase-extension-module-initialization">PEP 489: Multi-phase extension module initialization</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#new-modules">新增模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#typing">typing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#zipapp">zipapp</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#improved-modules">改进的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#argparse">argparse</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#asyncio">asyncio</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#bz2">bz2</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#cgi">cgi</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#cmath">cmath</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#code">code</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#collections-abc">collections.abc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#compileall">compileall</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#concurrent-futures">concurrent.futures</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#configparser">configparser</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#csv">csv</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#curses">curses</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#dbm">dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#difflib">difflib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#distutils">distutils</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#doctest">doctest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#email">email</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#enum">enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#faulthandler">faulthandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#functools">functools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#glob">glob</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#gzip">gzip</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#heapq">heapq</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#http">http</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#http-client">http.client</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#idlelib-and-idle">idlelib 与 IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#imaplib">imaplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#imghdr">imghdr</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#importlib">importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#inspect">inspect</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#io">io</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#ipaddress">ipaddress</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#json">json</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#linecache">linecache</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#locale">locale</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#lzma">lzma</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#math">math</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#multiprocessing">multiprocessing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#operator">operator</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pathlib">pathlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#pickle">pickle</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#poplib">poplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#re">re</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#readline">readline</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#selectors">selectors</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#shutil">shutil</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#signal">signal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#smtpd">smtpd</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#smtplib">smtplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#sndhdr">sndhdr</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#ssl">ssl</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.5.html#memory-bio-support">Memory BIO Support</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.5.html#application-layer-protocol-negotiation-support">Application-Layer Protocol Negotiation Support</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.5.html#other-changes">Other Changes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#subprocess">subprocess</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#sys">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#sysconfig">sysconfig</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#tarfile">tarfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#threading">threading</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#time">time</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#timeit">timeit</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#tkinter">tkinter</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#traceback">traceback</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#types">types</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#unicodedata">unicodedata</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#unittest">unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#unittest-mock">unittest.mock</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#urllib">urllib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#wsgiref">wsgiref</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#xmlrpc">xmlrpc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#xml-sax">xml.sax</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#zipfile">zipfile</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#other-module-level-changes">Other module-level changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#deprecated">Deprecated</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#new-keywords">New Keywords</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#deprecated-python-behavior">已弃用的 Python 行为</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#unsupported-operating-systems">Unsupported Operating Systems</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#deprecated-python-modules-functions-and-methods">已弃用的 Python 模块、函数和方法</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#removed">移除</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#api-and-feature-removals">API 与特性的移除</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#porting-to-python-3-5">Porting to Python 3.5</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#changes-in-python-behavior">Changes in Python behavior</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#changes-in-the-python-api">改变了的Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#changes-in-the-c-api">C API 中的改变</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.5.html#notable-changes-in-python-3-5-4">Notable changes in Python 3.5.4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#new-make-regen-all-build-target">New <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">regen-all</span></code> build target</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.5.html#removal-of-make-touch-build-target">Removal of <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">touch</span></code> build target</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.4.html">What's New In Python 3.4</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#summary-release-highlights">摘要 - 发布重点</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#new-features">新的特性</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-453-explicit-bootstrapping-of-pip-in-python-installations">PEP 453: Explicit Bootstrapping of PIP in Python Installations</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.4.html#bootstrapping-pip-by-default">Bootstrapping pip By Default</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.4.html#documentation-changes">Documentation Changes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-446-newly-created-file-descriptors-are-non-inheritable">PEP 446: Newly Created File Descriptors Are Non-Inheritable</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#improvements-to-codec-handling">Improvements to Codec Handling</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-451-a-modulespec-type-for-the-import-system">PEP 451: A ModuleSpec Type for the Import System</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#other-language-changes">其他语言特性修改</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#new-modules">新增模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#asyncio">asyncio</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#ensurepip">ensurepip</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#enum">enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pathlib">pathlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#selectors">selectors</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#statistics">statistics</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#tracemalloc">tracemalloc</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#improved-modules">改进的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#abc">abc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#aifc">aifc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#argparse">argparse</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#audioop">audioop</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#base64">base64</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#colorsys">colorsys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#dbm">dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#dis">dis</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#doctest">doctest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#email">email</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#filecmp">filecmp</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#functools">functools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#gc">gc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#glob">glob</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#hashlib">hashlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#hmac">hmac</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#html">html</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#http">http</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#idlelib-and-idle">idlelib 与 IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#importlib">importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#inspect">inspect</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#ipaddress">ipaddress</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#marshal">marshal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#mmap">mmap</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#multiprocessing">multiprocessing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#operator">operator</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pdb">pdb</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pickle">pickle</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#plistlib">plistlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#poplib">poplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pprint">pprint</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pty">pty</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pydoc">pydoc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#re">re</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#resource">resource</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#select">select</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#shelve">shelve</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#shutil">shutil</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#smtpd">smtpd</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#smtplib">smtplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#ssl">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#stat">stat</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#struct">struct</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#subprocess">subprocess</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#sunau">sunau</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#sys">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#tarfile">tarfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#textwrap">textwrap</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#threading">threading</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#traceback">traceback</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#types">types</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#urllib">urllib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#unittest">unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#venv">venv</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#wave">wave</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#weakref">weakref</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#xml-etree">xml.etree</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#zipfile">zipfile</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#cpython-implementation-changes">CPython Implementation Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-445-customization-of-cpython-memory-allocators">PEP 445: Customization of CPython Memory Allocators</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-442-safe-object-finalization">PEP 442: Safe Object Finalization</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-456-secure-and-interchangeable-hash-algorithm">PEP 456: Secure and Interchangeable Hash Algorithm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-436-argument-clinic">PEP 436: Argument Clinic</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#other-build-and-c-api-changes">Other Build and C API Changes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#other-improvements">Other Improvements</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#significant-optimizations">Significant Optimizations</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#deprecated">Deprecated</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#deprecations-in-the-python-api">Deprecations in the Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#deprecated-features">Deprecated Features</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#removed">移除</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#operating-systems-no-longer-supported">Operating Systems No Longer Supported</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#api-and-feature-removals">API 与特性的移除</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#code-cleanups">Code Cleanups</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#porting-to-python-3-4">Porting to Python 3.4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#changes-in-python-command-behavior">Changes in 'python' Command Behavior</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#changes-in-the-python-api">改变了的Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#changes-in-the-c-api">C API 中的改变</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.4.html#changed-in-3-4-3">Changed in 3.4.3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.4.html#pep-476-enabling-certificate-verification-by-default-for-stdlib-http-clients">PEP 476: Enabling certificate verification by default for stdlib http clients</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.3.html">What's New In Python 3.3</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#summary-release-highlights">摘要 - 发布重点</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-405-virtual-environments">PEP 405: Virtual Environments</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-420-implicit-namespace-packages">PEP 420: Implicit Namespace Packages</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-3118-new-memoryview-implementation-and-buffer-protocol-documentation">PEP 3118: New memoryview implementation and buffer protocol documentation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#features">相关特性</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#api-changes">API changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-393-flexible-string-representation">PEP 393: Flexible String Representation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#functionality">Functionality</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#performance-and-resource-usage">Performance and resource usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-397-python-launcher-for-windows">PEP 397: Python Launcher for Windows</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-3151-reworking-the-os-and-io-exception-hierarchy">PEP 3151: Reworking the OS and IO exception hierarchy</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-380-syntax-for-delegating-to-a-subgenerator">PEP 380: Syntax for Delegating to a Subgenerator</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-409-suppressing-exception-context">PEP 409: Suppressing exception context</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-414-explicit-unicode-literals">PEP 414: Explicit Unicode literals</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-3155-qualified-name-for-classes-and-functions">PEP 3155: Qualified name for classes and functions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-412-key-sharing-dictionary">PEP 412: Key-Sharing Dictionary</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-362-function-signature-object">PEP 362: Function Signature Object</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#pep-421-adding-sys-implementation">PEP 421: Adding sys.implementation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#simplenamespace">SimpleNamespace</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#using-importlib-as-the-implementation-of-import">Using importlib as the Implementation of Import</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#new-apis">New APIs</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#visible-changes">Visible Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#a-finer-grained-import-lock">A Finer-Grained Import Lock</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#builtin-functions-and-types">Builtin functions and types</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#new-modules">新增模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#faulthandler">faulthandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#ipaddress">ipaddress</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#lzma">lzma</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#improved-modules">改进的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#abc">abc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#array">array</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#base64">base64</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#binascii">binascii</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#bz2">bz2</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#codecs">codecs</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#crypt">crypt</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#curses">curses</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#datetime">datetime</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#decimal">decimal</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.3.html#id1">相关特性</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.3.html#id2">API changes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#email">email</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.3.html#policy-framework">Policy Framework</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.3.html#provisional-policy-with-new-header-api">Provisional Policy with New Header API</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/3.3.html#other-api-changes">Other API Changes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#ftplib">ftplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#functools">functools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#gc">gc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#hmac">hmac</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#http">http</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#html">html</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#imaplib">imaplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#inspect">inspect</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#io">io</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#itertools">itertools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#math">math</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#mmap">mmap</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#multiprocessing">multiprocessing</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#nntplib">nntplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#pdb">pdb</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#pickle">pickle</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#pydoc">pydoc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#re">re</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#sched">sched</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#select">select</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#shlex">shlex</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#shutil">shutil</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#signal">signal</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#smtpd">smtpd</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#smtplib">smtplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#socketserver">socketserver</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#ssl">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#stat">stat</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#struct">struct</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#subprocess">subprocess</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#sys">sys</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#tarfile">tarfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#tempfile">tempfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#textwrap">textwrap</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#threading">threading</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#time">time</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#types">types</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#unittest">unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#urllib">urllib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#webbrowser">webbrowser</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#xml-etree-elementtree">xml.etree.ElementTree</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#zlib">zlib</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#deprecated">Deprecated</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#unsupported-operating-systems">Unsupported Operating Systems</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#deprecated-python-modules-functions-and-methods">已弃用的 Python 模块、函数和方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#deprecated-functions-and-types-of-the-c-api">已弃用的 C API 函数和类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#deprecated-features">Deprecated features</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.3.html#porting-to-python-3-3">Porting to Python 3.3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#porting-python-code">Porting Python code</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#porting-c-code">Porting C code</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#building-c-extensions">Building C extensions</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.3.html#command-line-switch-changes">Command Line Switch Changes</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.2.html">What's New In Python 3.2</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-384-defining-a-stable-abi">PEP 384: Defining a Stable ABI</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-389-argparse-command-line-parsing-module">PEP 389: Argparse Command Line Parsing Module</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-391-dictionary-based-configuration-for-logging">PEP 391:  Dictionary Based Configuration for Logging</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-3148-the-concurrent-futures-module">PEP 3148:  The <code class="docutils literal notranslate"><span class="pre">concurrent.futures</span></code> module</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-3147-pyc-repository-directories">PEP 3147:  PYC Repository Directories</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-3149-abi-version-tagged-so-files">PEP 3149: ABI Version Tagged .so Files</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#pep-3333-python-web-server-gateway-interface-v1-0-1">PEP 3333: Python Web Server Gateway Interface v1.0.1</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#email">email</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#elementtree">elementtree</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#functools">functools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#itertools">itertools</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#collections">collections</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#threading">threading</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#datetime-and-time">datetime and time</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#math">math</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#abc">abc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#io">io</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#reprlib">reprlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#logging">logging</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#csv">csv</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#contextlib">contextlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#decimal-and-fractions">decimal and fractions</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#ftp">ftp</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#popen">popen</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#select">select</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#gzip-and-zipfile">gzip and zipfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#tarfile">tarfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#hashlib">hashlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#ast">ast</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#os">os</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#shutil">shutil</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#sqlite3">sqlite3</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#html">html</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#socket">socket</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#ssl">ssl</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#nntp">nntp</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#certificates">certificates</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#imaplib">imaplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#http-client">http.client</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#unittest">unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#random">random</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#poplib">poplib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#asyncore">asyncore</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#tempfile">tempfile</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#inspect">inspect</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#pydoc">pydoc</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#dis">dis</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#dbm">dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#ctypes">ctypes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#site">site</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#sysconfig">sysconfig</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#pdb">pdb</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#configparser">configparser</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#urllib-parse">urllib.parse</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#mailbox">mailbox</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.2.html#turtledemo">turtledemo</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#multi-threading">多线程</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#unicode">Unicode</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#codecs">Codecs</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#documentation">文档</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#idle">IDLE</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#code-repository">Code Repository</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.2.html#porting-to-python-3-2">Porting to Python 3.2</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.1.html">What's New In Python 3.1</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#pep-372-ordered-dictionaries">PEP 372: Ordered Dictionaries</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#pep-378-format-specifier-for-thousands-separator">PEP 378: Format Specifier for Thousands Separator</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#other-language-changes">其他语言特性修改</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#optimizations">性能优化</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#idle">IDLE</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.1.html#porting-to-python-3-1">Porting to Python 3.1</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/3.0.html">What's New In Python 3.0</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#common-stumbling-blocks">Common Stumbling Blocks</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#print-is-a-function">Print Is A Function</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#views-and-iterators-instead-of-lists">Views And Iterators Instead Of Lists</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#ordering-comparisons">Ordering Comparisons</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#integers">Integers</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit">Text Vs. Data Instead Of Unicode Vs. 8-bit</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#overview-of-syntax-changes">Overview Of Syntax Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#new-syntax">New Syntax</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#changed-syntax">Changed Syntax</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#removed-syntax">Removed Syntax</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#changes-already-present-in-python-2-6">Changes Already Present In Python 2.6</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#library-changes">Library Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#pep-3101-a-new-approach-to-string-formatting"><strong>PEP 3101</strong>: A New Approach To String Formatting</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#changes-to-exceptions">Changes To Exceptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#miscellaneous-other-changes">Miscellaneous Other Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#operators-and-special-methods">Operators And Special Methods</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/3.0.html#builtins">Builtins</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#build-and-c-api-changes">Build and C API Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#performance">Performance</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/3.0.html#porting-to-python-3-0">Porting To Python 3.0</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.7.html">What's New in Python 2.7</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#the-future-for-python-2-x">The Future for Python 2.x</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#changes-to-the-handling-of-deprecation-warnings">Changes to the Handling of Deprecation Warnings</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#python-3-1-features">Python 3.1 Features</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-372-adding-an-ordered-dictionary-to-collections">PEP 372: Adding an Ordered Dictionary to collections</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-378-format-specifier-for-thousands-separator">PEP 378: Format Specifier for Thousands Separator</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-389-the-argparse-module-for-parsing-command-lines">PEP 389: The argparse Module for Parsing Command Lines</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-391-dictionary-based-configuration-for-logging">PEP 391: Dictionary-Based Configuration For Logging</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-3106-dictionary-views">PEP 3106: Dictionary Views</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#pep-3137-the-memoryview-object">PEP 3137: The memoryview Object</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#other-language-changes">其他语言特性修改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#interpreter-changes">Interpreter Changes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#optimizations">性能优化</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#new-and-improved-modules">New and Improved Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#new-module-importlib">New module: importlib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#new-module-sysconfig">New module: sysconfig</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#ttk-themed-widgets-for-tk">ttk: Themed Widgets for Tk</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#updated-module-unittest">Updated module: unittest</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#updated-module-elementtree-1-3">Updated module: ElementTree 1.3</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#capsules">胶囊</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#port-specific-changes-windows">Port-Specific Changes: Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#port-specific-changes-mac-os-x">Port-Specific Changes: Mac OS X</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#port-specific-changes-freebsd">Port-Specific Changes: FreeBSD</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#porting-to-python-2-7">Porting to Python 2.7</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#new-features-added-to-python-2-7-maintenance-releases">New Features Added to Python 2.7 Maintenance Releases</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#two-new-environment-variables-for-debug-mode">Two new environment variables for debug mode</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#pep-434-idle-enhancement-exception-for-all-branches">PEP 434: IDLE Enhancement Exception for All Branches</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7">PEP 466: Network Security Enhancements for Python 2.7</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#pep-477-backport-ensurepip-pep-453-to-python-2-7">PEP 477: Backport ensurepip (PEP 453) to Python 2.7</a><ul>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/2.7.html#bootstrapping-pip-by-default">Bootstrapping pip By Default</a></li>
<li class="toctree-l5"><a class="reference internal" href="whatsnew/2.7.html#documentation-changes">Documentation Changes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#pep-476-enabling-certificate-verification-by-default-for-stdlib-http-clients">PEP 476: Enabling certificate verification by default for stdlib http clients</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#pep-493-https-verification-migration-tools-for-python-2-7">PEP 493: HTTPS verification migration tools for Python 2.7</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#new-make-regen-all-build-target">New <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">regen-all</span></code> build target</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.7.html#removal-of-make-touch-build-target">Removal of <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">touch</span></code> build target</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.7.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.6.html">Python 2.6 有什么新变化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#python-3-0">Python 3.0</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#changes-to-the-development-process">Changes to the Development Process</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#new-issue-tracker-roundup">New Issue Tracker: Roundup</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#new-documentation-format-restructuredtext-using-sphinx">New Documentation Format: reStructuredText Using Sphinx</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-343-the-with-statement">PEP 343: The 'with' statement</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#writing-context-managers">Writing Context Managers</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-contextlib-module">The contextlib module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-366-explicit-relative-imports-from-a-main-module">PEP 366: Explicit Relative Imports From a Main Module</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-370-per-user-site-packages-directory">PEP 370: Per-user <code class="docutils literal notranslate"><span class="pre">site-packages</span></code> Directory</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-371-the-multiprocessing-package">PEP 371: The <code class="docutils literal notranslate"><span class="pre">multiprocessing</span></code> Package</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3101-advanced-string-formatting">PEP 3101: Advanced String Formatting</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3105-print-as-a-function">PEP 3105: <code class="docutils literal notranslate"><span class="pre">print</span></code> As a Function</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3110-exception-handling-changes">PEP 3110: Exception-Handling Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3112-byte-literals">PEP 3112: Byte Literals</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3116-new-i-o-library">PEP 3116: New I/O Library</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3118-revised-buffer-protocol">PEP 3118: Revised Buffer Protocol</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3119-abstract-base-classes">PEP 3119: Abstract Base Classes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3127-integer-literal-support-and-syntax">PEP 3127: Integer Literal Support and Syntax</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3129-class-decorators">PEP 3129: Class Decorators</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#pep-3141-a-type-hierarchy-for-numbers">PEP 3141: A Type Hierarchy for Numbers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-fractions-module">The <code class="docutils literal notranslate"><span class="pre">fractions</span></code> Module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#other-language-changes">其他语言特性修改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#optimizations">性能优化</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#interpreter-changes">Interpreter Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#new-and-improved-modules">New and Improved Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-ast-module">The <code class="docutils literal notranslate"><span class="pre">ast</span></code> module</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-future-builtins-module">The <code class="docutils literal notranslate"><span class="pre">future_builtins</span></code> module</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-json-module-javascript-object-notation">The <code class="docutils literal notranslate"><span class="pre">json</span></code> module: JavaScript Object Notation</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#the-plistlib-module-a-property-list-parser">The <code class="docutils literal notranslate"><span class="pre">plistlib</span></code> module: A Property-List Parser</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#ctypes-enhancements">ctypes Enhancements</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#improved-ssl-support">Improved SSL Support</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#deprecations-and-removals">Deprecations and Removals</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#port-specific-changes-windows">Port-Specific Changes: Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#port-specific-changes-mac-os-x">Port-Specific Changes: Mac OS X</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.6.html#port-specific-changes-irix">Port-Specific Changes: IRIX</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#porting-to-python-2-6">Porting to Python 2.6</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.6.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.5.html">What's New in Python 2.5</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-308-conditional-expressions">PEP 308: Conditional Expressions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-309-partial-function-application">PEP 309: Partial Function Application</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-314-metadata-for-python-software-packages-v1-1">PEP 314: Metadata for Python Software Packages v1.1</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-328-absolute-and-relative-imports">PEP 328: Absolute and Relative Imports</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-338-executing-modules-as-scripts">PEP 338: Executing Modules as Scripts</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-341-unified-try-except-finally">PEP 341: Unified try/except/finally</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-342-new-generator-features">PEP 342: New Generator Features</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-343-the-with-statement">PEP 343: The 'with' statement</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#writing-context-managers">Writing Context Managers</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-contextlib-module">The contextlib module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-352-exceptions-as-new-style-classes">PEP 352: Exceptions as New-Style Classes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type">PEP 353: Using ssize_t as the index type</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#pep-357-the-index-method">PEP 357: The '__index__' method</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#other-language-changes">其他语言特性修改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#interactive-interpreter-changes">Interactive Interpreter Changes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#optimizations">性能优化</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#new-improved-and-removed-modules">New, Improved, and Removed Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-ctypes-package">The ctypes package</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-elementtree-package">The ElementTree package</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-hashlib-package">The hashlib package</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-sqlite3-package">The sqlite3 package</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#the-wsgiref-package">The wsgiref package</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.5.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#porting-to-python-2-5">Porting to Python 2.5</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.5.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.4.html">What's New in Python 2.4</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-218-built-in-set-objects">PEP 218: Built-In Set Objects</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-237-unifying-long-integers-and-integers">PEP 237: Unifying Long Integers and Integers</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-289-generator-expressions">PEP 289: Generator Expressions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-292-simpler-string-substitutions">PEP 292: Simpler String Substitutions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-318-decorators-for-functions-and-methods">PEP 318: Decorators for Functions and Methods</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-322-reverse-iteration">PEP 322: Reverse Iteration</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-324-new-subprocess-module">PEP 324: New subprocess Module</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-327-decimal-data-type">PEP 327: Decimal Data Type</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#why-is-decimal-needed">Why is Decimal needed?</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#the-decimal-type">The <code class="docutils literal notranslate"><span class="pre">Decimal</span></code> type</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#the-context-type">The <code class="docutils literal notranslate"><span class="pre">Context</span></code> type</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-328-multi-line-imports">PEP 328: Multi-line Imports</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#pep-331-locale-independent-float-string-conversions">PEP 331: Locale-Independent Float/String Conversions</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#other-language-changes">其他语言特性修改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#optimizations">性能优化</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#cookielib">cookielib</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#doctest">doctest</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.4.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#porting-to-python-2-4">Porting to Python 2.4</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.4.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.3.html">What's New in Python 2.3</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-218-a-standard-set-datatype">PEP 218: A Standard Set Datatype</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-255-simple-generators">PEP 255: Simple Generators</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-263-source-code-encodings">PEP 263: Source Code Encodings</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-273-importing-modules-from-zip-archives">PEP 273: Importing Modules from ZIP Archives</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-277-unicode-file-name-support-for-windows-nt">PEP 277: Unicode file name support for Windows NT</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-278-universal-newline-support">PEP 278: Universal Newline Support</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-279-enumerate">PEP 279: enumerate()</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-282-the-logging-package">PEP 282: The logging Package</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-285-a-boolean-type">PEP 285: A Boolean Type</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-293-codec-error-handling-callbacks">PEP 293: Codec Error Handling Callbacks</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-301-package-index-and-metadata-for-distutils">PEP 301: Package Index and Metadata for Distutils</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-302-new-import-hooks">PEP 302: New Import Hooks</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-305-comma-separated-files">PEP 305: Comma-separated Files</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pep-307-pickle-enhancements">PEP 307: Pickle Enhancements</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#extended-slices">Extended Slices</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#other-language-changes">其他语言特性修改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.3.html#string-changes">String Changes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.3.html#optimizations">性能优化</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#new-improved-and-deprecated-modules">New, Improved, and Deprecated Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.3.html#date-time-type">Date/Time Type</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.3.html#the-optparse-module">The optparse Module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#pymalloc-a-specialized-object-allocator">Pymalloc: A Specialized Object Allocator</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#build-and-c-api-changes">Build and C API Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.3.html#port-specific-changes">Port-Specific Changes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#porting-to-python-2-3">Porting to Python 2.3</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.3.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.2.html">What's New in Python 2.2</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#introduction">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#peps-252-and-253-type-and-class-changes">PEPs 252 and 253: Type and Class Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.2.html#old-and-new-classes">Old and New Classes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.2.html#descriptors">Descriptors</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.2.html#multiple-inheritance-the-diamond-rule">Multiple Inheritance: The Diamond Rule</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.2.html#attribute-access">Attribute Access</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.2.html#related-links">Related Links</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#pep-234-iterators">PEP 234: Iterators</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#pep-255-simple-generators">PEP 255: Simple Generators</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#pep-237-unifying-long-integers-and-integers">PEP 237: Unifying Long Integers and Integers</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#pep-238-changing-the-division-operator">PEP 238: Changing the Division Operator</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#unicode-changes">Unicode Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#pep-227-nested-scopes">PEP 227: Nested Scopes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#new-and-improved-modules">New and Improved Modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#interpreter-changes-and-fixes">Interpreter Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.2.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.1.html">What's New in Python 2.1</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#introduction">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-227-nested-scopes">PEP 227: Nested Scopes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-236-future-directives">PEP 236: __future__ Directives</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-207-rich-comparisons">PEP 207: Rich Comparisons</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-230-warning-framework">PEP 230: Warning Framework</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-229-new-build-system">PEP 229: New Build System</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-205-weak-references">PEP 205: Weak References</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-232-function-attributes">PEP 232: Function Attributes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-235-importing-modules-on-case-insensitive-platforms">PEP 235: Importing Modules on Case-Insensitive Platforms</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-217-interactive-display-hook">PEP 217: Interactive Display Hook</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-208-new-coercion-model">PEP 208: New Coercion Model</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#pep-241-metadata-in-python-packages">PEP 241: Metadata in Python Packages</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#new-and-improved-modules">New and Improved Modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#other-changes-and-fixes">Other Changes and Fixes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.1.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/2.0.html">What's New in Python 2.0</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#introduction">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#what-about-python-1-6">What About Python 1.6?</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#new-development-process">New Development Process</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#unicode">Unicode</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#list-comprehensions">列表推导式</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#augmented-assignment">Augmented Assignment</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#string-methods">字符串的方法</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#garbage-collection-of-cycles">Garbage Collection of Cycles</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#other-core-changes">Other Core Changes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.0.html#minor-language-changes">Minor Language Changes</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.0.html#changes-to-built-in-functions">Changes to Built-in Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#porting-to-2-0">Porting to 2.0</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#extending-embedding-changes">Extending/Embedding Changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#distutils-making-modules-easy-to-install">Distutils: Making Modules Easy to Install</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#xml-modules">XML Modules</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.0.html#sax2-support">SAX2 Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.0.html#dom-support">DOM Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/2.0.html#relationship-to-pyxml">Relationship to PyXML</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#module-changes">Module changes</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#new-modules">New modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#idle-improvements">IDLE Improvements</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#deleted-and-deprecated-modules">Deleted and Deprecated Modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/2.0.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="whatsnew/changelog.html">更新日志</a><ul>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-next">Python 下一版</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#core-and-builtins">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#library">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#documentation">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#tests">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#windows">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#idle">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#tools-demos">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-3-final">Python 3.7.3 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-3-release-candidate-1">Python 3.7.3 发布候选版 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#security">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id2">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id3">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id4">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id5">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#build">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id6">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id7">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id8">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#c-api">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-2-final">Python 3.7.2 最终版</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id9">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id10">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id11">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-2-release-candidate-1">Python 3.7.2 发布候选版 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id12">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id13">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id14">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id15">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id16">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id17">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id18">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#macos">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id19">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id20">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id21">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-1-final">Python 3.7.1 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id22">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-1-release-candidate-2">Python 3.7.1 release candidate 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id23">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id24">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id25">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id26">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id27">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id28">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-1-release-candidate-1">Python 3.7.1 发布候选版 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id29">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id30">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id31">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id32">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id33">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id34">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id35">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id36">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id37">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id38">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id39">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-final">Python 3.7.0 正式版</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id40">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id41">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-release-candidate-1">Python 3.7.0 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id42">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id43">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id44">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id45">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id46">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id47">IDLE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-beta-5">Python 3.7.0 beta 5</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id48">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id49">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id50">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id51">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id52">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id53">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id54">IDLE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-beta-4">Python 3.7.0 beta 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id55">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id56">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id57">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id58">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id59">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id60">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id61">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id62">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id63">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-beta-3">Python 3.7.0 beta 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id64">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id65">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id66">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id67">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id68">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id69">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id70">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id71">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id72">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id73">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id74">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-beta-2">Python 3.7.0 beta 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id75">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id76">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id77">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id78">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id79">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id80">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id81">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id82">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id83">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id84">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-beta-1">Python 3.7.0 beta 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id85">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id86">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id87">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id88">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id89">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id90">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id91">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id92">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-alpha-4">Python 3.7.0 alpha 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id93">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id94">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id95">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id96">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id97">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id98">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id99">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-alpha-3">Python 3.7.0 alpha 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id100">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id101">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id102">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id103">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id104">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id105">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id106">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id107">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id108">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id109">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-alpha-2">Python 3.7.0 alpha 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id110">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id111">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id112">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id113">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id114">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id115">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-7-0-alpha-1">Python 3.7.0 alpha 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id116">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id117">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id118">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id119">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id120">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id121">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id122">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id123">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id124">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id125">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-6-final">Python 3.6.6 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-6-release-candidate-1">Python 3.6.6 RC 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id126">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id127">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id128">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id129">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id130">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id131">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id132">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id133">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id134">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id135">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-5-final">Python 3.6.5 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id136">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id137">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-5-release-candidate-1">Python 3.6.5 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id138">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id139">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id140">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id141">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id142">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id143">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id144">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id145">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id146">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id147">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id148">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-4-final">Python 3.6.4 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-4-release-candidate-1">Python 3.6.4 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id149">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id150">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id151">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id152">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id153">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id154">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id155">macOS</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id156">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id157">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id158">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-3-final">Python 3.6.3 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id159">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id160">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-3-release-candidate-1">Python 3.6.3 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id161">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id162">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id163">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id164">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id165">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id166">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id167">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id168">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id169">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-2-final">Python 3.6.2 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-2-release-candidate-2">Python 3.6.2 release candidate 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id170">安全</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-2-release-candidate-1">Python 3.6.2 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id171">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id172">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id173">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id174">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id175">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id176">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id177">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id178">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id179">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id180">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id181">Windows</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-1-final">Python 3.6.1 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id182">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id183">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-1-release-candidate-1">Python 3.6.1 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id184">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id185">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id186">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id187">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id188">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id189">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id190">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id191">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-final">Python 3.6.0 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-release-candidate-2">Python 3.6.0 release candidate 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id192">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id193">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id194">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id195">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-release-candidate-1">Python 3.6.0 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id196">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id197">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id198">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id199">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id200">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-beta-4">Python 3.6.0 beta 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id201">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id202">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id203">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id204">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id205">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-beta-3">Python 3.6.0 beta 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id206">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id207">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id208">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id209">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id210">测试</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-beta-2">Python 3.6.0 beta 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id211">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id212">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id213">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id214">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id215">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id216">测试</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-beta-1">Python 3.6.0 beta 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id217">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id218">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id219">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id220">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id221">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id222">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id223">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id224">Windows</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-alpha-4">Python 3.6.0 alpha 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id225">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id226">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id227">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id228">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id229">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id230">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-alpha-3">Python 3.6.0 alpha 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id231">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id232">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id233">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id234">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id235">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id236">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id237">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id238">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id239">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id240">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id241">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id242">测试</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-alpha-2">Python 3.6.0 alpha 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id243">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id244">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id245">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id246">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id247">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id248">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id249">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id250">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id251">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id252">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id253">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id254">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id255">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id256">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-6-0-alpha-1">Python 3.6.0 alpha 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id257">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id258">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id259">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id260">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id261">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id262">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id263">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id264">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id265">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id266">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id267">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id268">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id269">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id270">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id271">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-5-final">Python 3.5.5 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-5-release-candidate-1">Python 3.5.5 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id272">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id273">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id274">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-4-final">Python 3.5.4 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id275">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-4-release-candidate-1">Python 3.5.4 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id276">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id277">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id278">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id279">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id280">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id281">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id282">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id283">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-3-final">Python 3.5.3 final</a></li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-3-release-candidate-1">Python 3.5.3 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id284">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id285">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id286">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id287">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id288">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id289">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id290">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id291">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id292">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id293">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id294">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id295">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id296">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-2-final">Python 3.5.2 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id297">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id298">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id299">IDLE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-2-release-candidate-1">Python 3.5.2 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id300">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id301">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id302">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id303">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id304">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id305">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id306">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id307">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id308">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id309">安全</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id310">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id311">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id312">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id313">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id314">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id315">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id316">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id317">Windows</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-1-final">Python 3.5.1 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id318">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id319">Windows</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-1-release-candidate-1">Python 3.5.1 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id320">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id321">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id322">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id323">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id324">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id325">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id326">Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id327">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-final">Python 3.5.0 final</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id328">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-release-candidate-4">Python 3.5.0 release candidate 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id329">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id330">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-release-candidate-3">Python 3.5.0 release candidate 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id331">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id332">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-release-candidate-2">Python 3.5.0 release candidate 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id333">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id334">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-release-candidate-1">Python 3.5.0 release candidate 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id335">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id336">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id337">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id338">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id339">测试</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-beta-4">Python 3.5.0 beta 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id340">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id341">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id342">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-beta-3">Python 3.5.0 beta 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id343">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id344">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id345">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id346">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id347">构建</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-beta-2">Python 3.5.0 beta 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id348">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id349">库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-beta-1">Python 3.5.0 beta 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id350">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id351">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id352">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id353">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id354">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id355">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-alpha-4">Python 3.5.0 alpha 4</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id356">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id357">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id358">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id359">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id360">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id361">C API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-alpha-3">Python 3.5.0 alpha 3</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id362">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id363">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id364">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id365">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id366">工具/示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-alpha-2">Python 3.5.0 alpha 2</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id367">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id368">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id369">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id370">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id371">Windows</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="whatsnew/changelog.html#python-3-5-0-alpha-1">Python 3.5.0 alpha 1</a><ul>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id372">核心与内置</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id373">库</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id374">IDLE</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id375">构建</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id376">C API</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id377">文档</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id378">测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id379">工具/示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="whatsnew/changelog.html#id380">Windows</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tutorial/index.html">Python 教程</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tutorial/appetite.html">1. 课前甜点</a></li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/interpreter.html">2. 使用 Python 解释器</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/interpreter.html#invoking-the-interpreter">2.1. 调用解释器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/interpreter.html#argument-passing">2.1.1. 传入参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/interpreter.html#interactive-mode">2.1.2. 交互模式</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/interpreter.html#the-interpreter-and-its-environment">2.2. 解释器的运行环境</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/interpreter.html#source-code-encoding">2.2.1. 源文件的字符编码</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/introduction.html">3. Python 的非正式介绍</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/introduction.html#using-python-as-a-calculator">3.1. Python 作为计算器使用</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/introduction.html#numbers">3.1.1. 数字</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/introduction.html#strings">3.1.2. 字符串</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/introduction.html#lists">3.1.3. 列表</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/introduction.html#first-steps-towards-programming">3.2. 走向编程的第一步</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/controlflow.html">4. 其他流程控制工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#if-statements">4.1. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#for-statements">4.2. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#the-range-function">4.3. <code class="docutils literal notranslate"><span class="pre">range()</span></code> 函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops">4.4. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">break</span></code> 和 <code class="xref std std-keyword docutils literal notranslate"><span class="pre">continue</span></code> 语句，以及循环中的 <code class="xref std std-keyword docutils literal notranslate"><span class="pre">else</span></code> 子句</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#pass-statements">4.5. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">pass</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#defining-functions">4.6. 定义函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#more-on-defining-functions">4.7. 函数定义的更多形式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#default-argument-values">4.7.1. 参数默认值</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#keyword-arguments">4.7.2. 关键字参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#arbitrary-argument-lists">4.7.3. 任意的参数列表</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#unpacking-argument-lists">4.7.4. 解包参数列表</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#lambda-expressions">4.7.5. Lambda 表达式</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#documentation-strings">4.7.6. 文档字符串</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/controlflow.html#function-annotations">4.7.7. 函数标注</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/controlflow.html#intermezzo-coding-style">4.8. 小插曲：编码风格</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/datastructures.html">5. 数据结构</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#more-on-lists">5.1. 列表的更多特性</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/datastructures.html#using-lists-as-stacks">5.1.1. 列表作为栈使用</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/datastructures.html#using-lists-as-queues">5.1.2. 列表作为队列使用</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/datastructures.html#list-comprehensions">5.1.3. 列表推导式</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/datastructures.html#nested-list-comprehensions">5.1.4. 嵌套的列表推导式</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#the-del-statement">5.2. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">del</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#tuples-and-sequences">5.3. 元组和序列</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#sets">5.4. 集合</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#dictionaries">5.5. 字典</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#looping-techniques">5.6. 循环的技巧</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#more-on-conditions">5.7. 深入条件控制</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/datastructures.html#comparing-sequences-and-other-types">5.8. 序列和其它类型的比较</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/modules.html">6. 模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/modules.html#more-on-modules">6.1. 有关模块的更多信息</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#executing-modules-as-scripts">6.1.1. 以脚本的方式执行模块</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#the-module-search-path">6.1.2. 模块搜索路径</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#compiled-python-files">6.1.3. “编译过的”Python文件</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/modules.html#standard-modules">6.2. 标准模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/modules.html#the-dir-function">6.3. <code class="docutils literal notranslate"><span class="pre">dir()</span></code> 函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/modules.html#packages">6.4. 包</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#importing-from-a-package">6.4.1. 从包中导入 *</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#intra-package-references">6.4.2. 子包参考</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/modules.html#packages-in-multiple-directories">6.4.3. 多个目录中的包</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/inputoutput.html">7. 输入输出</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/inputoutput.html#fancier-output-formatting">7.1. 更漂亮的输出格式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#formatted-string-literals">7.1.1. 格式化字符串文字</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#the-string-format-method">7.1.2. 字符串的 format() 方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#manual-string-formatting">7.1.3. 手动格式化字符串</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#old-string-formatting">7.1.4. 旧的字符串格式化方法</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/inputoutput.html#reading-and-writing-files">7.2. 读写文件</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#methods-of-file-objects">7.2.1. 文件对象的方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/inputoutput.html#saving-structured-data-with-json">7.2.2. 使用 <code class="docutils literal notranslate"><span class="pre">json</span></code> 保存结构化数据</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/errors.html">8. 错误和异常</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#syntax-errors">8.1. 语法错误</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#exceptions">8.2. 异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#handling-exceptions">8.3. 处理异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#raising-exceptions">8.4. 抛出异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#user-defined-exceptions">8.5. 用户自定义异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#defining-clean-up-actions">8.6. 定义清理操作</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/errors.html#predefined-clean-up-actions">8.7. 预定义的清理操作</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/classes.html">9. 类</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#a-word-about-names-and-objects">9.1. 名称和对象</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#python-scopes-and-namespaces">9.2. Python 作用域和命名空间</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#scopes-and-namespaces-example">9.2.1. 作用域和命名空间示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#a-first-look-at-classes">9.3. 初探类</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#class-definition-syntax">9.3.1. 类定义语法</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#class-objects">9.3.2. 类对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#instance-objects">9.3.3. 实例对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#method-objects">9.3.4. 方法对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#class-and-instance-variables">9.3.5. 类和实例变量</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#random-remarks">9.4. 补充说明</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#inheritance">9.5. 继承</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/classes.html#multiple-inheritance">9.5.1. 多重继承</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#private-variables">9.6. 私有变量</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#odds-and-ends">9.7. 杂项说明</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#iterators">9.8. 迭代器</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#generators">9.9. 生成器</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/classes.html#generator-expressions">9.10. 生成器表达式</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/stdlib.html">10. 标准库简介</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#operating-system-interface">10.1. 操作系统接口</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#file-wildcards">10.2. 文件通配符</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#command-line-arguments">10.3. 命令行参数</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#error-output-redirection-and-program-termination">10.4. 错误输出重定向和程序终止</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#string-pattern-matching">10.5. 字符串模式匹配</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#mathematics">10.6. 数学</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#internet-access">10.7. 互联网访问</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#dates-and-times">10.8. 日期和时间</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#data-compression">10.9. 数据压缩</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#performance-measurement">10.10. 性能测量</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#quality-control">10.11. 质量控制</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib.html#batteries-included">10.12. 包含电池</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/stdlib2.html">11. 标准库简介 —— 第二部分</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#output-formatting">11.1. 格式化输出</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#templating">11.2. 模板</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#working-with-binary-data-record-layouts">11.3. 使用二进制数据记录格式</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#multi-threading">11.4. 多线程</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#logging">11.5. 日志</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#weak-references">11.6. 弱引用</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#tools-for-working-with-lists">11.7. 用于操作列表的工具</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/stdlib2.html#decimal-floating-point-arithmetic">11.8. 十进制浮点运算</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/venv.html">12. 虚拟环境和包</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/venv.html#introduction">12.1. 概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/venv.html#creating-virtual-environments">12.2. 创建虚拟环境</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/venv.html#managing-packages-with-pip">12.3. 使用pip管理包</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/whatnow.html">13. 接下来？</a></li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/interactive.html">14. 交互式编辑和编辑历史</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/interactive.html#tab-completion-and-history-editing">14.1. Tab 补全和编辑历史</a></li>
<li class="toctree-l3"><a class="reference internal" href="tutorial/interactive.html#alternatives-to-the-interactive-interpreter">14.2. 默认交互式解释器的替代品</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/floatingpoint.html">15. 浮点算术：争议和限制</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/floatingpoint.html#representation-error">15.1. 表示性错误</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="tutorial/appendix.html">16. 附录</a><ul>
<li class="toctree-l3"><a class="reference internal" href="tutorial/appendix.html#interactive-mode">16.1. 交互模式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tutorial/appendix.html#error-handling">16.1.1. 错误处理</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/appendix.html#executable-python-scripts">16.1.2. 可执行的Python脚本</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/appendix.html#the-interactive-startup-file">16.1.3. 交互式启动文件</a></li>
<li class="toctree-l4"><a class="reference internal" href="tutorial/appendix.html#the-customization-modules">16.1.4. 定制模块</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="using/index.html">安装和使用 Python</a><ul>
<li class="toctree-l2"><a class="reference internal" href="using/cmdline.html">1. 命令行与环境</a><ul>
<li class="toctree-l3"><a class="reference internal" href="using/cmdline.html#command-line">1.1. 命令行</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/cmdline.html#interface-options">1.1.1. 接口选项</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/cmdline.html#generic-options">1.1.2. 通用选项</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/cmdline.html#miscellaneous-options">1.1.3. 其他选项</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/cmdline.html#options-you-shouldn-t-use">1.1.4. 不应当使用的选项</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/cmdline.html#environment-variables">1.2. 环境变量</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/cmdline.html#debug-mode-variables">1.2.1. Debug-mode variables</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="using/unix.html">2. 在Unix平台中使用Python</a><ul>
<li class="toctree-l3"><a class="reference internal" href="using/unix.html#getting-and-installing-the-latest-version-of-python">2.1. 获取最新版本的Python</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/unix.html#on-linux">2.1.1. Linux环境下</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/unix.html#on-freebsd-and-openbsd">2.1.2. 在FreeBSD和OpenBSD上</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/unix.html#on-opensolaris">2.1.3. On OpenSolaris</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/unix.html#building-python">2.2. Building Python</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/unix.html#python-related-paths-and-files">2.3. Python-related paths and files</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/unix.html#miscellaneous">2.4. Miscellaneous</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/unix.html#editors-and-ides">2.5. 编辑器和集成开发环境</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="using/windows.html">3. 在Windows上使用 Python</a><ul>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#the-full-installer">3.1. 完整安装程序</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#installation-steps">3.1.1. 安装步骤</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#removing-the-max-path-limitation">3.1.2. 删除 MAX_PATH 限制</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#installing-without-ui">3.1.3. 无UI 安装</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#installing-without-downloading">3.1.4. 免下载安装</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#modifying-an-install">3.1.5. 修改安装</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#the-microsoft-store-package">3.2. Microsoft Store包</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#known-issues">3.2.1. 已知的问题</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#the-nuget-org-packages">3.3. nuget.org 安装包</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#the-embeddable-package">3.4. 可嵌入的包</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#python-application">3.4.1. Python应用程序</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#embedding-python">3.4.2. 嵌入Python</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#alternative-bundles">3.5. 替代捆绑包</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#configuring-python">3.6. 配置Python</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#excursus-setting-environment-variables">3.6.1. 附录：设置环境变量</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#finding-the-python-executable">3.6.2. 查找Python可执行文件</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#python-launcher-for-windows">3.7. 适用于Windows的Python启动器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#getting-started">3.7.1. 入门</a><ul>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#from-the-command-line">3.7.1.1. 从命令行</a></li>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#virtual-environments">3.7.1.2. 从虚拟环境</a></li>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#from-a-script">3.7.1.3. 从脚本</a></li>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#from-file-associations">3.7.1.4. 从文件关联</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#shebang-lines">3.7.2. Shebang Lines</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#arguments-in-shebang-lines">3.7.3. shebang lines 的参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#customization">3.7.4. 自定义</a><ul>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#customization-via-ini-files">3.7.4.1. 通过INI文件自定义</a></li>
<li class="toctree-l5"><a class="reference internal" href="using/windows.html#customizing-default-python-versions">3.7.4.2. 自定义默认的Python版本</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#diagnostics">3.7.5. 诊断</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#finding-modules">3.8. 查找模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#additional-modules">3.9. 附加模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#pywin32">3.9.1. PyWin32</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#cx-freeze">3.9.2. cx_Freeze</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/windows.html#wconio">3.9.3. WConio</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#compiling-python-on-windows">3.10. 在Windows上编译Python</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/windows.html#other-platforms">3.11. 其他平台</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="using/mac.html">4. 在苹果系统上使用 Python</a><ul>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#getting-and-installing-macpython">4.1. 获取和安装 MacPython</a><ul>
<li class="toctree-l4"><a class="reference internal" href="using/mac.html#how-to-run-a-python-script">4.1.1. 如何运行 Python 脚本</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/mac.html#running-scripts-with-a-gui">4.1.2. 运行有图形界面的脚本</a></li>
<li class="toctree-l4"><a class="reference internal" href="using/mac.html#configuration">4.1.3. 配置</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#the-ide">4.2. IDE</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#installing-additional-python-packages">4.3. 安装额外的 Python 包</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#gui-programming-on-the-mac">4.4. Mac 上的图形界面编程</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#distributing-python-applications-on-the-mac">4.5. 在 Mac 上分发 Python 应用程序</a></li>
<li class="toctree-l3"><a class="reference internal" href="using/mac.html#other-resources">4.6. 其他资源</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="reference/index.html">Python 语言参考</a><ul>
<li class="toctree-l2"><a class="reference internal" href="reference/introduction.html">1. 概述</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/introduction.html#alternate-implementations">1.1. 其他实现</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/introduction.html#notation">1.2. 标注</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/lexical_analysis.html">2. 词法分析</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#line-structure">2.1. 行结构</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#logical-lines">2.1.1. 逻辑行</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#physical-lines">2.1.2. 物理行</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#comments">2.1.3. 注释</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#encoding-declarations">2.1.4. 编码声明</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#explicit-line-joining">2.1.5. 显式的行拼接</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#implicit-line-joining">2.1.6. 隐式的行拼接</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#blank-lines">2.1.7. 空白行</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#indentation">2.1.8. 缩进</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#whitespace-between-tokens">2.1.9. 形符之间的空白</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#other-tokens">2.2. 其他形符</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#identifiers">2.3. 标识符和关键字</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#keywords">2.3.1. 关键字</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#reserved-classes-of-identifiers">2.3.2. 保留的标识符类</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#literals">2.4. 字面值</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#string-and-bytes-literals">2.4.1. 字符串和字节串字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#string-literal-concatenation">2.4.2. 字符串字面值拼接</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#formatted-string-literals">2.4.3. 格式化字符串字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#numeric-literals">2.4.4. 数字字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#integer-literals">2.4.5. 整型数字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#floating-point-literals">2.4.6. 浮点数字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/lexical_analysis.html#imaginary-literals">2.4.7. 虚数字面值</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#operators">2.5. 运算符</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/lexical_analysis.html#delimiters">2.6. 分隔符</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/datamodel.html">3. 数据模型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/datamodel.html#objects-values-and-types">3.1. 对象、值与类型</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/datamodel.html#the-standard-type-hierarchy">3.2. 标准类型层级结构</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/datamodel.html#special-method-names">3.3. 特殊方法名称</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#basic-customization">3.3.1. 基本定制</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#customizing-attribute-access">3.3.2. 自定义属性访问</a><ul>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#customizing-module-attribute-access">3.3.2.1. 自定义模块属性访问</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#implementing-descriptors">3.3.2.2. 实现描述器</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#invoking-descriptors">3.3.2.3. 发起调用描述器</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#slots">3.3.2.4. __slots__</a><ul>
<li class="toctree-l6"><a class="reference internal" href="reference/datamodel.html#notes-on-using-slots">3.3.2.4.1. 使用 <em>__slots__</em> 的注意事项</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#customizing-class-creation">3.3.3. 自定义类创建</a><ul>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#metaclasses">3.3.3.1. 元类</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#resolving-mro-entries">3.3.3.2. 解析 MRO 条目</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#determining-the-appropriate-metaclass">3.3.3.3. 确定适当的元类</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#preparing-the-class-namespace">3.3.3.4. 准备类命名空间</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#executing-the-class-body">3.3.3.5. 执行类主体</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#creating-the-class-object">3.3.3.6. 创建类对象</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/datamodel.html#uses-for-metaclasses">3.3.3.7. 元类的作用</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#customizing-instance-and-subclass-checks">3.3.4. 自定义实例及子类检查</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#emulating-generic-types">3.3.5. 模拟泛型类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#emulating-callable-objects">3.3.6. 模拟可调用对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#emulating-container-types">3.3.7. 模拟容器类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#emulating-numeric-types">3.3.8. 模拟数字类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#with-statement-context-managers">3.3.9. with 语句上下文管理器</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#special-method-lookup">3.3.10. 特殊方法查找</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/datamodel.html#coroutines">3.4. 协程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#awaitable-objects">3.4.1. 可等待对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#coroutine-objects">3.4.2. 协程对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#asynchronous-iterators">3.4.3. 异步迭代器</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/datamodel.html#asynchronous-context-managers">3.4.4. 异步上下文管理器</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/executionmodel.html">4. 执行模型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/executionmodel.html#structure-of-a-program">4.1. 程序的结构</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/executionmodel.html#naming-and-binding">4.2. 命名与绑定</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/executionmodel.html#binding-of-names">4.2.1. 名称的绑定</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/executionmodel.html#resolution-of-names">4.2.2. 名称的解析</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/executionmodel.html#builtins-and-restricted-execution">4.2.3. 内置命名空间和受限的执行</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/executionmodel.html#interaction-with-dynamic-features">4.2.4. 与动态特性的交互</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/executionmodel.html#exceptions">4.3. 异常</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/import.html">5. 导入系统</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#importlib">5.1. <code class="docutils literal notranslate"><span class="pre">importlib</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#packages">5.2. 包</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#regular-packages">5.2.1. 正规包</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#namespace-packages">5.2.2. 命名空间包</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#searching">5.3. 搜索</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#the-module-cache">5.3.1. 模块缓存</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#finders-and-loaders">5.3.2. 查找器和加载器</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#import-hooks">5.3.3. 导入钩子</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#the-meta-path">5.3.4. 元路径</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#loading">5.4. 加载</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#loaders">5.4.1. 加载器</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#submodules">5.4.2. 子模块</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#module-spec">5.4.3. 模块规格说明</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#import-related-module-attributes">5.4.4. 导入相关的模块属性</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#module-path">5.4.5. module.__path__</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#module-reprs">5.4.6. 模块的 repr</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#cached-bytecode-invalidation">5.4.7. 已缓存字节码的失效</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#the-path-based-finder">5.5. 基于路径的查找器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#path-entry-finders">5.5.1. 路径条目查找器</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#path-entry-finder-protocol">5.5.2. 路径条目查找器协议</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#replacing-the-standard-import-system">5.6. 替换标准导入系统</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#special-considerations-for-main">5.7. 有关 __main__ 的特殊事项</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/import.html#main-spec">5.7.1. __main__.__spec__</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#open-issues">5.8. 开放问题项</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/import.html#references">5.9. 参考文献</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/expressions.html">6. 表达式</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#arithmetic-conversions">6.1. 算术转换</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#atoms">6.2. 原子</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#atom-identifiers">6.2.1. 标识符（名称）</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#literals">6.2.2. 字面值</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#parenthesized-forms">6.2.3. 带圆括号的形式</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#displays-for-lists-sets-and-dictionaries">6.2.4. 列表、集合与字典的显示</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#list-displays">6.2.5. 列表显示</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#set-displays">6.2.6. 集合显示</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#dictionary-displays">6.2.7. 字典显示</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#generator-expressions">6.2.8. 生成器表达式</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#yield-expressions">6.2.9. yield 表达式</a><ul>
<li class="toctree-l5"><a class="reference internal" href="reference/expressions.html#generator-iterator-methods">6.2.9.1. 生成器-迭代器的方法</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/expressions.html#examples">6.2.9.2. 示例</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/expressions.html#asynchronous-generator-functions">6.2.9.3. 异步生成器函数</a></li>
<li class="toctree-l5"><a class="reference internal" href="reference/expressions.html#asynchronous-generator-iterator-methods">6.2.9.4. 异步生成器-迭代器方法</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#primaries">6.3. 原型</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#attribute-references">6.3.1. 属性引用</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#subscriptions">6.3.2. 抽取</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#slicings">6.3.3. 切片</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#calls">6.3.4. 调用</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#await-expression">6.4. await 表达式</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#the-power-operator">6.5. 幂运算符</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#unary-arithmetic-and-bitwise-operations">6.6. 一元算术和位运算</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#binary-arithmetic-operations">6.7. 二元算术运算符</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#shifting-operations">6.8. 移位运算</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#binary-bitwise-operations">6.9. 二元位运算</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#comparisons">6.10. 比较运算</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#value-comparisons">6.10.1. 值比较</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#membership-test-operations">6.10.2. 成员检测运算</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/expressions.html#is-not">6.10.3. 标识号比较</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#boolean-operations">6.11. 布尔运算</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#conditional-expressions">6.12. 条件表达式</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#lambda">6.13. lambda 表达式</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#expression-lists">6.14. 表达式列表</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#evaluation-order">6.15. 求值顺序</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/expressions.html#operator-precedence">6.16. 运算符优先级</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/simple_stmts.html">7. 简单语句</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#expression-statements">7.1. 表达式语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#assignment-statements">7.2. 赋值语句</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/simple_stmts.html#augmented-assignment-statements">7.2.1. 增强赋值语句</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/simple_stmts.html#annotated-assignment-statements">7.2.2. 带标注的赋值语句</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-assert-statement">7.3. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">assert</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-pass-statement">7.4. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">pass</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-del-statement">7.5. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">del</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-return-statement">7.6. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">return</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-yield-statement">7.7. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-raise-statement">7.8. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">raise</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-break-statement">7.9. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">break</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-continue-statement">7.10. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">continue</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-import-statement">7.11. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">import</span></code> 语句</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/simple_stmts.html#future-statements">7.11.1. future 语句</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-global-statement">7.12. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">global</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/simple_stmts.html#the-nonlocal-statement">7.13. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">nonlocal</span></code> 语句</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/compound_stmts.html">8. 复合语句</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#the-if-statement">8.1. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#the-while-statement">8.2. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">while</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#the-for-statement">8.3. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#the-try-statement">8.4. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">try</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#the-with-statement">8.5. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code> 语句</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#function-definitions">8.6. 函数定义</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#class-definitions">8.7. 类定义</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/compound_stmts.html#coroutines">8.8. 协程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="reference/compound_stmts.html#coroutine-function-definition">8.8.1. 协程函数定义</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/compound_stmts.html#the-async-for-statement">8.8.2. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code> 语句</a></li>
<li class="toctree-l4"><a class="reference internal" href="reference/compound_stmts.html#the-async-with-statement">8.8.3. <code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">with</span></code> 语句</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/toplevel_components.html">9. 最高层级组件</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference/toplevel_components.html#complete-python-programs">9.1. 完整的 Python 程序</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/toplevel_components.html#file-input">9.2. 文件输入</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/toplevel_components.html#interactive-input">9.3. 交互式输入</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference/toplevel_components.html#expression-input">9.4. 表达式输入</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="reference/grammar.html">10. 完整的语法规范</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="library/index.html">Python 标准库</a><ul>
<li class="toctree-l2"><a class="reference internal" href="library/intro.html">概述</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/intro.html#notes-on-availability">可用性注释</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/functions.html">内置函数</a></li>
<li class="toctree-l2"><a class="reference internal" href="library/constants.html">内置常量</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/constants.html#constants-added-by-the-site-module">由 <code class="docutils literal notranslate"><span class="pre">site</span></code> 模块添加的常量</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/stdtypes.html">内置类型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#truth-value-testing">逻辑值检测</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#boolean-operations-and-or-not">布尔运算 --- <code class="xref std std-keyword docutils literal notranslate"><span class="pre">and</span></code>, <code class="xref std std-keyword docutils literal notranslate"><span class="pre">or</span></code>, <code class="xref std std-keyword docutils literal notranslate"><span class="pre">not</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#comparisons">比较</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#numeric-types-int-float-complex">数字类型 --- <code class="docutils literal notranslate"><span class="pre">int</span></code>, <code class="docutils literal notranslate"><span class="pre">float</span></code>, <code class="docutils literal notranslate"><span class="pre">complex</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#bitwise-operations-on-integer-types">整数类型的按位运算</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#additional-methods-on-integer-types">整数类型的附加方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#additional-methods-on-float">浮点类型的附加方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#hashing-of-numeric-types">数字类型的哈希运算</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#iterator-types">迭代器类型</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#generator-types">生成器类型</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#sequence-types-list-tuple-range">序列类型 --- <code class="docutils literal notranslate"><span class="pre">list</span></code>, <code class="docutils literal notranslate"><span class="pre">tuple</span></code>, <code class="docutils literal notranslate"><span class="pre">range</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#common-sequence-operations">常用序列操作</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#immutable-sequence-types">不可变序列类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#mutable-sequence-types">可变序列类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#lists">列表</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#tuples">元组</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#ranges">range 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#text-sequence-type-str">文本序列类型 --- <code class="docutils literal notranslate"><span class="pre">str</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#string-methods">字符串的方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#printf-style-string-formatting"><code class="docutils literal notranslate"><span class="pre">printf</span></code>-style String Formatting</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#binary-sequence-types-bytes-bytearray-memoryview">二进制序列类型 --- <code class="docutils literal notranslate"><span class="pre">bytes</span></code>, <code class="docutils literal notranslate"><span class="pre">bytearray</span></code>, <code class="docutils literal notranslate"><span class="pre">memoryview</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#bytes-objects">字节对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#bytearray-objects">Bytearray Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#bytes-and-bytearray-operations">Bytes and Bytearray Operations</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#printf-style-bytes-formatting"><code class="docutils literal notranslate"><span class="pre">printf</span></code>-style Bytes Formatting</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#memory-views">Memory Views</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#set-types-set-frozenset">集合类型 --- <code class="docutils literal notranslate"><span class="pre">set</span></code>, <code class="docutils literal notranslate"><span class="pre">frozenset</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#mapping-types-dict">映射类型 --- <code class="docutils literal notranslate"><span class="pre">dict</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#dictionary-view-objects">Dictionary view objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#context-manager-types">Context Manager Types</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#other-built-in-types">Other Built-in Types</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#modules">模块</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#classes-and-class-instances">Classes and Class Instances</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#methods">方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#code-objects">代码对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#type-objects">Type 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#the-null-object">The Null Object</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#the-ellipsis-object">The Ellipsis Object</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#the-notimplemented-object">The NotImplemented Object</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#boolean-values">Boolean Values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/stdtypes.html#internal-objects">Internal Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/stdtypes.html#special-attributes">Special Attributes</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/exceptions.html">内置异常</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/exceptions.html#base-classes">基类</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/exceptions.html#concrete-exceptions">具体异常</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/exceptions.html#os-exceptions">OS exceptions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/exceptions.html#warnings">警告</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/exceptions.html#exception-hierarchy">异常层次结构</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/text.html">文本处理服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/string.html"><code class="docutils literal notranslate"><span class="pre">string</span></code> --- 常见的字符串操作</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#string-constants">字符串常量</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#custom-string-formatting">Custom String Formatting</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#format-string-syntax">Format String Syntax</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-specification-mini-language">Format Specification Mini-Language</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/string.html#format-examples">Format examples</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#template-strings">Template strings</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/string.html#helper-functions">Helper functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/re.html"><code class="docutils literal notranslate"><span class="pre">re</span></code> --- 正则表达式操作</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/re.html#regular-expression-syntax">正则表达式语法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/re.html#module-contents">模块内容</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/re.html#regular-expression-objects">正则表达式对象 （正则对象）</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/re.html#match-objects">匹配对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/re.html#regular-expression-examples">正则表达式例子</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#checking-for-a-pair">检查对子</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#simulating-scanf">模拟 scanf()</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#search-vs-match">search() vs. match()</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#making-a-phonebook">建立一个电话本</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#text-munging">文字整理</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#finding-all-adverbs">找到所有副词</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#finding-all-adverbs-and-their-positions">找到所有副词和位置</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#raw-string-notation">原始字符记法</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/re.html#writing-a-tokenizer">写一个词法分析器</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/difflib.html">模块 <cite>difflib</cite>  是一个计算差异的助手</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/difflib.html#sequencematcher-objects">SequenceMatcher Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/difflib.html#sequencematcher-examples">序列匹配的示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/difflib.html#differ-objects">Differ Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/difflib.html#differ-example">Differ Example</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/difflib.html#a-command-line-interface-to-difflib">A command-line interface to difflib</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/textwrap.html"><code class="docutils literal notranslate"><span class="pre">textwrap</span></code> --- Text wrapping and filling</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/unicodedata.html"><code class="docutils literal notranslate"><span class="pre">unicodedata</span></code> --- Unicode 数据库</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stringprep.html"><code class="docutils literal notranslate"><span class="pre">stringprep</span></code> --- Internet String Preparation</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/readline.html"><code class="docutils literal notranslate"><span class="pre">readline</span></code> --- GNU readline interface</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#init-file">Init file</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#line-buffer">Line buffer</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#history-file">History file</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#history-list">History list</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#startup-hooks">Startup hooks</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#completion">Completion</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/readline.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/rlcompleter.html"><code class="docutils literal notranslate"><span class="pre">rlcompleter</span></code> --- Completion function for GNU readline</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/rlcompleter.html#completer-objects">Completer Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/binary.html">二进制数据服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/struct.html"><code class="docutils literal notranslate"><span class="pre">struct</span></code> --- Interpret bytes as packed binary data</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/struct.html#functions-and-exceptions">Functions and Exceptions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/struct.html#format-strings">Format Strings</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/struct.html#byte-order-size-and-alignment">Byte Order, Size, and Alignment</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/struct.html#format-characters">Format Characters</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/struct.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/struct.html#classes">类</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/codecs.html"><code class="docutils literal notranslate"><span class="pre">codecs</span></code> --- Codec registry and base classes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#codec-base-classes">Codec Base Classes</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#error-handlers">Error Handlers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#stateless-encoding-and-decoding">Stateless Encoding and Decoding</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#incremental-encoding-and-decoding">Incremental Encoding and Decoding</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#incrementalencoder-objects">IncrementalEncoder Objects</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#incrementaldecoder-objects">IncrementalDecoder Objects</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#stream-encoding-and-decoding">Stream Encoding and Decoding</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#streamwriter-objects">StreamWriter Objects</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#streamreader-objects">StreamReader Objects</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#streamreaderwriter-objects">StreamReaderWriter Objects</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/codecs.html#streamrecoder-objects">StreamRecoder Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#encodings-and-unicode">Encodings and Unicode</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#standard-encodings">Standard Encodings</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#python-specific-encodings">Python Specific Encodings</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#text-encodings">Text Encodings</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#binary-transforms">Binary Transforms</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/codecs.html#text-transforms">Text Transforms</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#module-encodings.idna"><code class="docutils literal notranslate"><span class="pre">encodings.idna</span></code> --- Internationalized Domain Names in Applications</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#module-encodings.mbcs"><code class="docutils literal notranslate"><span class="pre">encodings.mbcs</span></code> --- Windows ANSI codepage</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/codecs.html#module-encodings.utf_8_sig"><code class="docutils literal notranslate"><span class="pre">encodings.utf_8_sig</span></code> --- UTF-8 codec with BOM signature</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/datatypes.html">数据类型</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/datetime.html"><code class="docutils literal notranslate"><span class="pre">datetime</span></code> --- 基础日期/时间数据类型</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#available-types">Available Types</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#timedelta-objects"><code class="docutils literal notranslate"><span class="pre">timedelta</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#date-objects"><code class="docutils literal notranslate"><span class="pre">date</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#datetime-objects"><code class="docutils literal notranslate"><span class="pre">datetime</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#time-objects"><code class="docutils literal notranslate"><span class="pre">time</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#tzinfo-objects"><code class="docutils literal notranslate"><span class="pre">tzinfo</span></code> 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#timezone-objects"><code class="docutils literal notranslate"><span class="pre">timezone</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/datetime.html#strftime-and-strptime-behavior"><code class="docutils literal notranslate"><span class="pre">strftime()</span></code> and <code class="docutils literal notranslate"><span class="pre">strptime()</span></code> Behavior</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/calendar.html"><code class="docutils literal notranslate"><span class="pre">calendar</span></code> --- General calendar-related functions</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/collections.html"><code class="docutils literal notranslate"><span class="pre">collections</span></code> --- 容器数据类型</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#chainmap-objects"><code class="docutils literal notranslate"><span class="pre">ChainMap</span></code> 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/collections.html#chainmap-examples-and-recipes"><code class="docutils literal notranslate"><span class="pre">ChainMap</span></code> 例子和方法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#counter-objects"><code class="docutils literal notranslate"><span class="pre">Counter</span></code> 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#deque-objects"><code class="docutils literal notranslate"><span class="pre">deque</span></code> 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/collections.html#deque-recipes"><code class="docutils literal notranslate"><span class="pre">deque</span></code> 用法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#defaultdict-objects"><code class="docutils literal notranslate"><span class="pre">defaultdict</span></code> 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/collections.html#defaultdict-examples"><code class="docutils literal notranslate"><span class="pre">defaultdict</span></code> 例子</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields"><code class="docutils literal notranslate"><span class="pre">namedtuple()</span></code> 命名元组的工厂函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#ordereddict-objects"><code class="docutils literal notranslate"><span class="pre">OrderedDict</span></code> 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/collections.html#ordereddict-examples-and-recipes"><code class="docutils literal notranslate"><span class="pre">OrderedDict</span></code> 例子和用法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#userdict-objects"><code class="docutils literal notranslate"><span class="pre">UserDict</span></code> 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#userlist-objects"><code class="docutils literal notranslate"><span class="pre">UserList</span></code> 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/collections.html#userstring-objects"><code class="docutils literal notranslate"><span class="pre">UserString</span></code> 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/collections.abc.html"><code class="docutils literal notranslate"><span class="pre">collections.abc</span></code> --- 容器的抽象基类</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/collections.abc.html#collections-abstract-base-classes">Collections Abstract Base Classes</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/heapq.html"><code class="docutils literal notranslate"><span class="pre">heapq</span></code> --- Heap queue algorithm</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/heapq.html#basic-examples">Basic Examples</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/heapq.html#priority-queue-implementation-notes">Priority Queue Implementation Notes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/heapq.html#theory">Theory</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/bisect.html"><code class="docutils literal notranslate"><span class="pre">bisect</span></code> --- Array bisection algorithm</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/bisect.html#searching-sorted-lists">Searching Sorted Lists</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/bisect.html#other-examples">Other Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/array.html"><code class="docutils literal notranslate"><span class="pre">array</span></code> --- Efficient arrays of numeric values</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/weakref.html"><code class="docutils literal notranslate"><span class="pre">weakref</span></code> --- 弱引用</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/weakref.html#weak-reference-objects">Weak Reference Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/weakref.html#example">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/weakref.html#finalizer-objects">Finalizer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/weakref.html#comparing-finalizers-with-del-methods">Comparing finalizers with <code class="docutils literal notranslate"><span class="pre">__del__()</span></code> methods</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/types.html"><code class="docutils literal notranslate"><span class="pre">types</span></code> --- Dynamic type creation and names for built-in types</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/types.html#dynamic-type-creation">Dynamic Type Creation</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/types.html#standard-interpreter-types">Standard Interpreter Types</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/types.html#additional-utility-classes-and-functions">Additional Utility Classes and Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/types.html#coroutine-utility-functions">Coroutine Utility Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/copy.html"><code class="docutils literal notranslate"><span class="pre">copy</span></code> --- 浅层 (shallow) 和深层 (deep) 复制操作</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/pprint.html"><code class="docutils literal notranslate"><span class="pre">pprint</span></code> --- 数据美化输出</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pprint.html#prettyprinter-objects">PrettyPrinter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pprint.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/reprlib.html"><code class="docutils literal notranslate"><span class="pre">reprlib</span></code> --- Alternate <code class="docutils literal notranslate"><span class="pre">repr()</span></code> implementation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/reprlib.html#repr-objects">Repr Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/reprlib.html#subclassing-repr-objects">Subclassing Repr Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/enum.html"><code class="docutils literal notranslate"><span class="pre">enum</span></code> --- Support for enumerations</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#module-contents">模块内容</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#creating-an-enum">Creating an Enum</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#programmatic-access-to-enumeration-members-and-their-attributes">Programmatic access to enumeration members and their attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#duplicating-enum-members-and-values">Duplicating enum members and values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#ensuring-unique-enumeration-values">Ensuring unique enumeration values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#using-automatic-values">Using automatic values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#iteration">Iteration</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#comparisons">比较</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#allowed-members-and-attributes-of-enumerations">Allowed members and attributes of enumerations</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#restricted-enum-subclassing">Restricted Enum subclassing</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#pickling">Pickling</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#functional-api">Functional API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#derived-enumerations">Derived Enumerations</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#intenum">IntEnum</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#intflag">IntFlag</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#flag">标志</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#others">Others</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#interesting-examples">Interesting examples</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#omitting-values">Omitting values</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#using-auto">Using <code class="docutils literal notranslate"><span class="pre">auto</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#using-object">Using <code class="docutils literal notranslate"><span class="pre">object</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#using-a-descriptive-string">Using a descriptive string</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#using-a-custom-new">Using a custom <code class="docutils literal notranslate"><span class="pre">__new__()</span></code></a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#orderedenum">OrderedEnum</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#duplicatefreeenum">DuplicateFreeEnum</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#planet">Planet</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#timeperiod">TimePeriod</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/enum.html#how-are-enums-different">How are Enums different?</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#enum-classes">Enum Classes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#enum-members-aka-instances">Enum Members (aka instances)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/enum.html#finer-points">Finer Points</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#supported-dunder-names">Supported <code class="docutils literal notranslate"><span class="pre">__dunder__</span></code> names</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#supported-sunder-names">Supported <code class="docutils literal notranslate"><span class="pre">_sunder_</span></code> names</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#enum-member-type"><code class="docutils literal notranslate"><span class="pre">Enum</span></code> member type</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#boolean-value-of-enum-classes-and-members">Boolean value of <code class="docutils literal notranslate"><span class="pre">Enum</span></code> classes and members</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#enum-classes-with-methods"><code class="docutils literal notranslate"><span class="pre">Enum</span></code> classes with methods</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/enum.html#combining-members-of-flag">Combining members of <code class="docutils literal notranslate"><span class="pre">Flag</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/numeric.html">数字和数学模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/numbers.html"><code class="docutils literal notranslate"><span class="pre">numbers</span></code> --- Numeric abstract base classes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/numbers.html#the-numeric-tower">The numeric tower</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/numbers.html#notes-for-type-implementors">Notes for type implementors</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/numbers.html#adding-more-numeric-abcs">Adding More Numeric ABCs</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/numbers.html#implementing-the-arithmetic-operations">Implementing the arithmetic operations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/math.html"><code class="docutils literal notranslate"><span class="pre">math</span></code> --- 数学函数</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#number-theoretic-and-representation-functions">数论与表示函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#power-and-logarithmic-functions">幂函数与对数函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#trigonometric-functions">三角函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#angular-conversion">角度转换</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#hyperbolic-functions">双曲函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#special-functions">特殊函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/math.html#constants">常数</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/cmath.html"><code class="docutils literal notranslate"><span class="pre">cmath</span></code> --- Mathematical functions for complex numbers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#conversions-to-and-from-polar-coordinates">Conversions to and from polar coordinates</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#power-and-logarithmic-functions">幂函数与对数函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#trigonometric-functions">三角函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#hyperbolic-functions">双曲函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#classification-functions">Classification functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmath.html#constants">常数</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/decimal.html"><code class="docutils literal notranslate"><span class="pre">decimal</span></code> --- 十进制定点和浮点运算</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#quick-start-tutorial">快速入门教程</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#decimal-objects">Decimal 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/decimal.html#logical-operands">Logical operands</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#context-objects">Context objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#constants">常数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#rounding-modes">Rounding modes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#signals">Signals</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#floating-point-notes">Floating Point Notes</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/decimal.html#mitigating-round-off-error-with-increased-precision">Mitigating round-off error with increased precision</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/decimal.html#special-values">Special values</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#working-with-threads">Working with threads</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#recipes">Recipes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/decimal.html#decimal-faq">Decimal FAQ</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/fractions.html"><code class="docutils literal notranslate"><span class="pre">fractions</span></code> --- 分数</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/random.html"><code class="docutils literal notranslate"><span class="pre">random</span></code> --- 生成伪随机数</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#bookkeeping-functions">簿记功能</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#functions-for-integers">整数用函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#functions-for-sequences">序列用函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#real-valued-distributions">实值分布</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#alternative-generator">替代生成器</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#notes-on-reproducibility">关于再现性的说明</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/random.html#examples-and-recipes">例子和配方</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/statistics.html"><code class="docutils literal notranslate"><span class="pre">statistics</span></code> --- Mathematical statistics functions</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/statistics.html#averages-and-measures-of-central-location">Averages and measures of central location</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/statistics.html#measures-of-spread">Measures of spread</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/statistics.html#function-details">Function details</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/statistics.html#exceptions">异常</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/functional.html">函数式编程模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/itertools.html"><code class="docutils literal notranslate"><span class="pre">itertools</span></code> --- 为高效循环而创建迭代器的函数</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/itertools.html#itertool-functions">Itertool函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/itertools.html#itertools-recipes">Itertools食谱</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/functools.html"><code class="docutils literal notranslate"><span class="pre">functools</span></code> --- 高阶函数和可调用对象上的操作</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/functools.html#partial-objects"><code class="docutils literal notranslate"><span class="pre">partial</span></code> Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/operator.html"><code class="docutils literal notranslate"><span class="pre">operator</span></code> --- 标准运算符替代函数</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/operator.html#mapping-operators-to-functions">Mapping Operators to Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/operator.html#in-place-operators">In-place Operators</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/filesys.html">文件和目录访问</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/pathlib.html"><code class="docutils literal notranslate"><span class="pre">pathlib</span></code> --- 面向对象的文件系统路径</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pathlib.html#basic-use">基础使用</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pathlib.html#pure-paths">纯路径</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/pathlib.html#general-properties">通用性质</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pathlib.html#operators">运算符</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pathlib.html#accessing-individual-parts">访问个别部分</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pathlib.html#methods-and-properties">方法和特征属性</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/pathlib.html#concrete-paths">具体路径</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/pathlib.html#methods">方法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/pathlib.html#correspondence-to-tools-in-the-os-module">对应的 <code class="docutils literal notranslate"><span class="pre">os</span></code> 模块的工具</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/os.path.html"><code class="docutils literal notranslate"><span class="pre">os.path</span></code> --- 常见路径操作</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/fileinput.html"><code class="docutils literal notranslate"><span class="pre">fileinput</span></code> --- Iterate over lines from multiple input streams</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/stat.html"><code class="docutils literal notranslate"><span class="pre">stat</span></code> --- Interpreting <code class="docutils literal notranslate"><span class="pre">stat()</span></code> results</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/filecmp.html"><code class="docutils literal notranslate"><span class="pre">filecmp</span></code> --- File and Directory Comparisons</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/filecmp.html#the-dircmp-class">The <code class="docutils literal notranslate"><span class="pre">dircmp</span></code> class</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tempfile.html"><code class="docutils literal notranslate"><span class="pre">tempfile</span></code> --- Generate temporary files and directories</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tempfile.html#examples">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tempfile.html#deprecated-functions-and-variables">Deprecated functions and variables</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/glob.html"><code class="docutils literal notranslate"><span class="pre">glob</span></code> --- Unix style pathname pattern expansion</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/fnmatch.html"><code class="docutils literal notranslate"><span class="pre">fnmatch</span></code> --- Unix filename pattern matching</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/linecache.html"><code class="docutils literal notranslate"><span class="pre">linecache</span></code> --- Random access to text lines</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/shutil.html"><code class="docutils literal notranslate"><span class="pre">shutil</span></code> --- High-level file operations</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/shutil.html#directory-and-files-operations">Directory and files operations</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/shutil.html#copytree-example">copytree example</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/shutil.html#rmtree-example">rmtree example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/shutil.html#archiving-operations">Archiving operations</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/shutil.html#archiving-example">Archiving example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/shutil.html#querying-the-size-of-the-output-terminal">Querying the size of the output terminal</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/macpath.html"><code class="docutils literal notranslate"><span class="pre">macpath</span></code> --- Mac OS 9 路径操作函数</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/persistence.html">数据持久化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/pickle.html"><code class="docutils literal notranslate"><span class="pre">pickle</span></code> --- Python object serialization</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#relationship-to-other-python-modules">Relationship to other Python modules</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/pickle.html#comparison-with-marshal">Comparison with <code class="docutils literal notranslate"><span class="pre">marshal</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pickle.html#comparison-with-json">Comparison with <code class="docutils literal notranslate"><span class="pre">json</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#data-stream-format">Data stream format</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#module-interface">Module Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#what-can-be-pickled-and-unpickled">What can be pickled and unpickled?</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#pickling-class-instances">Pickling Class Instances</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/pickle.html#persistence-of-external-objects">Persistence of External Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pickle.html#dispatch-tables">Dispatch Tables</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/pickle.html#handling-stateful-objects">Handling Stateful Objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#restricting-globals">Restricting Globals</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#performance">Performance</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pickle.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/copyreg.html"><code class="docutils literal notranslate"><span class="pre">copyreg</span></code> --- Register <code class="docutils literal notranslate"><span class="pre">pickle</span></code> support functions</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/copyreg.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/shelve.html"><code class="docutils literal notranslate"><span class="pre">shelve</span></code> --- Python object persistence</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/shelve.html#restrictions">Restrictions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/shelve.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/marshal.html"><code class="docutils literal notranslate"><span class="pre">marshal</span></code> --- Internal Python object serialization</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/dbm.html"><code class="docutils literal notranslate"><span class="pre">dbm</span></code> --- Interfaces to Unix &quot;databases&quot;</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/dbm.html#module-dbm.gnu"><code class="docutils literal notranslate"><span class="pre">dbm.gnu</span></code> --- GNU's reinterpretation of dbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dbm.html#module-dbm.ndbm"><code class="docutils literal notranslate"><span class="pre">dbm.ndbm</span></code> --- Interface based on ndbm</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dbm.html#module-dbm.dumb"><code class="docutils literal notranslate"><span class="pre">dbm.dumb</span></code> --- Portable DBM implementation</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/sqlite3.html"><code class="docutils literal notranslate"><span class="pre">sqlite3</span></code> --- DB-API 2.0 interface for SQLite databases</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#module-functions-and-constants">Module functions and constants</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#connection-objects">Connection Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#cursor-objects">Cursor Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#row-objects">Row Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#exceptions">异常</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#sqlite-and-python-types">SQLite and Python types</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#introduction">概述</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#using-adapters-to-store-additional-python-types-in-sqlite-databases">Using adapters to store additional Python types in SQLite databases</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/sqlite3.html#letting-your-object-adapt-itself">Letting your object adapt itself</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/sqlite3.html#registering-an-adapter-callable">Registering an adapter callable</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#converting-sqlite-values-to-custom-python-types">Converting SQLite values to custom Python types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#default-adapters-and-converters">Default adapters and converters</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#controlling-transactions">Controlling Transactions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#using-sqlite3-efficiently">Using <code class="docutils literal notranslate"><span class="pre">sqlite3</span></code> efficiently</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#using-shortcut-methods">Using shortcut methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#accessing-columns-by-name-instead-of-by-index">Accessing columns by name instead of by index</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#using-the-connection-as-a-context-manager">Using the connection as a context manager</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/sqlite3.html#common-issues">Common issues</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/sqlite3.html#multithreading">Multithreading</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/archiving.html">数据压缩和存档</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/zlib.html"><code class="docutils literal notranslate"><span class="pre">zlib</span></code> --- 与 <strong class="program">gzip</strong> 兼容的压缩</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/gzip.html"><code class="docutils literal notranslate"><span class="pre">gzip</span></code> --- 对 <strong class="program">gzip</strong> 格式的支持</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/gzip.html#examples-of-usage">用法示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/bz2.html"><code class="docutils literal notranslate"><span class="pre">bz2</span></code> --- Support for <strong class="program">bzip2</strong> compression</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/bz2.html#de-compression-of-files">(De)compression of files</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/bz2.html#incremental-de-compression">Incremental (de)compression</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/bz2.html#one-shot-de-compression">One-shot (de)compression</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/lzma.html"><code class="docutils literal notranslate"><span class="pre">lzma</span></code> --- Compression using the LZMA algorithm</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/lzma.html#reading-and-writing-compressed-files">Reading and writing compressed files</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/lzma.html#compressing-and-decompressing-data-in-memory">Compressing and decompressing data in memory</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/lzma.html#miscellaneous">Miscellaneous</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/lzma.html#specifying-custom-filter-chains">Specifying custom filter chains</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/lzma.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/zipfile.html"><code class="docutils literal notranslate"><span class="pre">zipfile</span></code> --- Work with ZIP archives</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/zipfile.html#zipfile-objects">ZipFile Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipfile.html#pyzipfile-objects">PyZipFile Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipfile.html#zipinfo-objects">ZipInfo Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipfile.html#command-line-interface">命令行界面</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/zipfile.html#command-line-options">Command-line options</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tarfile.html"><code class="docutils literal notranslate"><span class="pre">tarfile</span></code> --- Read and write tar archive files</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#tarfile-objects">TarFile Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#tarinfo-objects">TarInfo Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#command-line-interface">命令行界面</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tarfile.html#command-line-options">Command-line options</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#examples">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#supported-tar-formats">Supported tar formats</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tarfile.html#unicode-issues">Unicode issues</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/fileformats.html">文件格式</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/csv.html"><code class="docutils literal notranslate"><span class="pre">csv</span></code> --- CSV 文件读写</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/csv.html#module-contents">模块内容</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/csv.html#dialects-and-formatting-parameters">Dialects and Formatting Parameters</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/csv.html#reader-objects">Reader Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/csv.html#writer-objects">Writer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/csv.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/configparser.html"><code class="docutils literal notranslate"><span class="pre">configparser</span></code> --- Configuration file parser</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#quick-start">Quick Start</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#supported-datatypes">Supported Datatypes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#fallback-values">Fallback Values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#supported-ini-file-structure">Supported INI File Structure</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#interpolation-of-values">Interpolation of values</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#mapping-protocol-access">Mapping Protocol Access</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#customizing-parser-behaviour">Customizing Parser Behaviour</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#legacy-api-examples">Legacy API Examples</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#configparser-objects">ConfigParser Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#rawconfigparser-objects">RawConfigParser Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/configparser.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/netrc.html"><code class="docutils literal notranslate"><span class="pre">netrc</span></code> --- netrc file processing</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/netrc.html#netrc-objects">netrc Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xdrlib.html"><code class="docutils literal notranslate"><span class="pre">xdrlib</span></code> --- Encode and decode XDR data</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xdrlib.html#packer-objects">Packer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xdrlib.html#unpacker-objects">Unpacker Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xdrlib.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/plistlib.html"><code class="docutils literal notranslate"><span class="pre">plistlib</span></code> --- Generate and parse Mac OS X <code class="docutils literal notranslate"><span class="pre">.plist</span></code> files</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/plistlib.html#examples">示例</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/crypto.html">加密服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/hashlib.html"><code class="docutils literal notranslate"><span class="pre">hashlib</span></code> --- 安全哈希与消息摘要</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/hashlib.html#hash-algorithms">哈希算法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/hashlib.html#shake-variable-length-digests">SHAKE variable length digests</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/hashlib.html#key-derivation">Key derivation</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/hashlib.html#blake2">BLAKE2</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/hashlib.html#creating-hash-objects">Creating hash objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/hashlib.html#constants">常数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/hashlib.html#examples">示例</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#simple-hashing">Simple hashing</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#using-different-digest-sizes">Using different digest sizes</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#keyed-hashing">Keyed hashing</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#randomized-hashing">Randomized hashing</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#personalization">Personalization</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/hashlib.html#tree-mode">Tree mode</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/hashlib.html#credits">Credits</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/hmac.html"><code class="docutils literal notranslate"><span class="pre">hmac</span></code> --- 基于密钥的消息验证</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/secrets.html"><code class="docutils literal notranslate"><span class="pre">secrets</span></code> --- Generate secure random numbers for managing secrets</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/secrets.html#random-numbers">Random numbers</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/secrets.html#generating-tokens">Generating tokens</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/secrets.html#how-many-bytes-should-tokens-use">How many bytes should tokens use?</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/secrets.html#other-functions">Other functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/secrets.html#recipes-and-best-practices">Recipes and best practices</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/allos.html">通用操作系统服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/os.html"><code class="docutils literal notranslate"><span class="pre">os</span></code> --- 操作系统接口模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#file-names-command-line-arguments-and-environment-variables">文件名，命令行参数，以及环境变量。</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#process-parameters">进程参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#file-object-creation">创建文件对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#file-descriptor-operations">文件描述符操作</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/os.html#querying-the-size-of-a-terminal">Querying the size of a terminal</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/os.html#inheritance-of-file-descriptors">Inheritance of File Descriptors</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#files-and-directories">Files and Directories</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/os.html#linux-extended-attributes">Linux extended attributes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#process-management">Process Management</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#interface-to-the-scheduler">Interface to the scheduler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#miscellaneous-system-information">Miscellaneous System Information</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/os.html#random-numbers">Random numbers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/io.html"><code class="docutils literal notranslate"><span class="pre">io</span></code> --- 处理流的核心工具</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/io.html#overview">概述</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#text-i-o">Text I/O</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#binary-i-o">Binary I/O</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#raw-i-o">Raw I/O</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/io.html#high-level-module-interface">High-level Module Interface</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#in-memory-streams">In-memory streams</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/io.html#class-hierarchy">Class hierarchy</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#i-o-base-classes">I/O Base Classes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#raw-file-i-o">Raw File I/O</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#buffered-streams">Buffered Streams</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#id1">Text I/O</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/io.html#performance">Performance</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#id2">Binary I/O</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#id3">Text I/O</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#multi-threading">多线程</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/io.html#reentrancy">Reentrancy</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/time.html"><code class="docutils literal notranslate"><span class="pre">time</span></code> --- 时间的访问和转换</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/time.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/time.html#clock-id-constants">Clock ID Constants</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/time.html#timezone-constants">Timezone Constants</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/argparse.html"><code class="docutils literal notranslate"><span class="pre">argparse</span></code> --- 命令行选项、参数和子命令解析器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#example">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#creating-a-parser">创建一个解析器</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#adding-arguments">添加参数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#parsing-arguments">解析参数</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#argumentparser-objects">ArgumentParser 对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#prog">prog</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#usage">usage</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#description">description</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#epilog">epilog</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#parents">parents</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#formatter-class">formatter_class</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#prefix-chars">prefix_chars</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#fromfile-prefix-chars">fromfile_prefix_chars</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#argument-default">argument_default</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#allow-abbrev">allow_abbrev</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#conflict-handler">conflict_handler</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#add-help">add_help</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#the-add-argument-method">The add_argument() method</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#name-or-flags">name or flags</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#action">action</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#nargs">nargs</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#const">const</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#default">default</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#type">类型</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#choices">choices</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#required">required</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#help">help</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#metavar">metavar</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#dest">dest</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#action-classes">Action classes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#the-parse-args-method">The parse_args() method</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#option-value-syntax">Option value syntax</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#invalid-arguments">Invalid arguments</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#arguments-containing">Arguments containing <code class="docutils literal notranslate"><span class="pre">-</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#argument-abbreviations-prefix-matching">Argument abbreviations (prefix matching)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#beyond-sys-argv">Beyond <code class="docutils literal notranslate"><span class="pre">sys.argv</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#the-namespace-object">The Namespace object</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#other-utilities">Other utilities</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#sub-commands">Sub-commands</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#filetype-objects">FileType objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#argument-groups">Argument groups</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#mutual-exclusion">Mutual exclusion</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#parser-defaults">Parser defaults</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#printing-help">Printing help</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#partial-parsing">Partial parsing</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#customizing-file-parsing">Customizing file parsing</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#exiting-methods">Exiting methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/argparse.html#intermixed-parsing">Intermixed parsing</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/argparse.html#upgrading-optparse-code">Upgrading optparse code</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/getopt.html"><code class="docutils literal notranslate"><span class="pre">getopt</span></code> --- C-style parser for command line options</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/logging.html"><code class="docutils literal notranslate"><span class="pre">logging</span></code> --- Logging facility for Python</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#logger-objects">Logger Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#logging-levels">日志级别</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#handler-objects">Handler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#formatter-objects">Formatter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#filter-objects">Filter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#logrecord-objects">LogRecord Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#logrecord-attributes">LogRecord attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#loggeradapter-objects">LoggerAdapter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#thread-safety">Thread Safety</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#module-level-functions">模块级别函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#module-level-attributes">Module-Level Attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.html#integration-with-the-warnings-module">Integration with the warnings module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/logging.config.html"><code class="docutils literal notranslate"><span class="pre">logging.config</span></code> --- 日志记录配置</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/logging.config.html#configuration-functions">Configuration functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.config.html#configuration-dictionary-schema">Configuration dictionary schema</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#dictionary-schema-details">Dictionary Schema Details</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#incremental-configuration">Incremental Configuration</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#object-connections">Object connections</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#user-defined-objects">User-defined objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#access-to-external-objects">Access to external objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#access-to-internal-objects">Access to internal objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/logging.config.html#import-resolution-and-custom-importers">Import resolution and custom importers</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.config.html#configuration-file-format">Configuration file format</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/logging.handlers.html"><code class="docutils literal notranslate"><span class="pre">logging.handlers</span></code> --- Logging handlers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#streamhandler">StreamHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#filehandler">FileHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#nullhandler">NullHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#watchedfilehandler">WatchedFileHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#baserotatinghandler">BaseRotatingHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#rotatingfilehandler">RotatingFileHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#timedrotatingfilehandler">TimedRotatingFileHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#sockethandler">SocketHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#datagramhandler">DatagramHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#sysloghandler">SysLogHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#nteventloghandler">NTEventLogHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#smtphandler">SMTPHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#memoryhandler">MemoryHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#httphandler">HTTPHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#queuehandler">QueueHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/logging.handlers.html#queuelistener">QueueListener</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/getpass.html"><code class="docutils literal notranslate"><span class="pre">getpass</span></code> --- 便携式密码输入工具</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/curses.html"><code class="docutils literal notranslate"><span class="pre">curses</span></code> --- 终端字符单元显示的处理</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/curses.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/curses.html#window-objects">Window Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/curses.html#constants">常数</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/curses.html#module-curses.textpad"><code class="docutils literal notranslate"><span class="pre">curses.textpad</span></code> --- Text input widget for curses programs</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/curses.html#textbox-objects">Textbox objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/curses.ascii.html"><code class="docutils literal notranslate"><span class="pre">curses.ascii</span></code> --- Utilities for ASCII characters</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/curses.panel.html"><code class="docutils literal notranslate"><span class="pre">curses.panel</span></code> --- A panel stack extension for curses</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/curses.panel.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/curses.panel.html#panel-objects">Panel Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/platform.html"><code class="docutils literal notranslate"><span class="pre">platform</span></code> ---  Access to underlying platform's identifying data</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/platform.html#cross-platform">Cross Platform</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/platform.html#java-platform">Java Platform</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/platform.html#windows-platform">Windows Platform</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/platform.html#win95-98-specific">Win95/98 specific</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/platform.html#mac-os-platform">Mac OS Platform</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/platform.html#unix-platforms">Unix Platforms</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/errno.html"><code class="docutils literal notranslate"><span class="pre">errno</span></code> --- Standard errno system symbols</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/ctypes.html"><code class="docutils literal notranslate"><span class="pre">ctypes</span></code> --- Python 的外部函数库</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ctypes.html#ctypes-tutorial">ctypes 教程</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#loading-dynamic-link-libraries">载入动态连接库</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#accessing-functions-from-loaded-dlls">操作导入的动态链接库中的函数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#calling-functions">调用函数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#fundamental-data-types">基础数据类型</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#calling-functions-continued">Calling functions, continued</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#calling-functions-with-your-own-custom-data-types">Calling functions with your own custom data types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#specifying-the-required-argument-types-function-prototypes">Specifying the required argument types (function prototypes)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#return-types">Return types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#passing-pointers-or-passing-parameters-by-reference">Passing pointers (or: passing parameters by reference)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#structures-and-unions">Structures and unions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#structure-union-alignment-and-byte-order">Structure/union alignment and byte order</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#bit-fields-in-structures-and-unions">Bit fields in structures and unions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#arrays">Arrays</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#pointers">Pointers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#type-conversions">Type conversions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#incomplete-types">Incomplete Types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#callback-functions">Callback functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#accessing-values-exported-from-dlls">Accessing values exported from dlls</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#surprises">Surprises</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#variable-sized-data-types">Variable-sized data types</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ctypes.html#ctypes-reference">ctypes reference</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#finding-shared-libraries">Finding shared libraries</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#loading-shared-libraries">Loading shared libraries</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#foreign-functions">Foreign functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#function-prototypes">Function prototypes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#utility-functions">Utility functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#data-types">Data types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#ctypes-fundamental-data-types-2">基础数据类型</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#structured-data-types">Structured data types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ctypes.html#arrays-and-pointers">Arrays and pointers</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/concurrency.html">并发执行</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/threading.html"><code class="docutils literal notranslate"><span class="pre">threading</span></code> --- 基于线程的并发</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#thread-local-data">线程本地数据</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#thread-objects">线程对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#lock-objects">锁对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#rlock-objects">递归锁对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#condition-objects">条件对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#semaphore-objects">信号量对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/threading.html#semaphore-example"><code class="docutils literal notranslate"><span class="pre">Semaphore</span></code> 例子</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#event-objects">事件对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#timer-objects">定时器对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#barrier-objects">栅栏对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/threading.html#using-locks-conditions-and-semaphores-in-the-with-statement">在 <code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code> 语句中使用锁、条件和信号量</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/multiprocessing.html"><code class="docutils literal notranslate"><span class="pre">multiprocessing</span></code> --- Process-based parallelism</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/multiprocessing.html#introduction">概述</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#the-process-class">The <code class="docutils literal notranslate"><span class="pre">Process</span></code> class</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#contexts-and-start-methods">Contexts and start methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#exchanging-objects-between-processes">Exchanging objects between processes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#synchronization-between-processes">Synchronization between processes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#sharing-state-between-processes">Sharing state between processes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#using-a-pool-of-workers">Using a pool of workers</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/multiprocessing.html#reference">参考引用</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#process-and-exceptions"><code class="docutils literal notranslate"><span class="pre">Process</span></code> and exceptions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#pipes-and-queues">Pipes and Queues</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#miscellaneous">Miscellaneous</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#connection-objects">Connection Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#synchronization-primitives">Synchronization primitives</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#shared-ctypes-objects">Shared <code class="docutils literal notranslate"><span class="pre">ctypes</span></code> Objects</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/multiprocessing.html#module-multiprocessing.sharedctypes">The <code class="docutils literal notranslate"><span class="pre">multiprocessing.sharedctypes</span></code> module</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#managers">Managers</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/multiprocessing.html#customized-managers">Customized managers</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/multiprocessing.html#using-a-remote-manager">Using a remote manager</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#proxy-objects">Proxy Objects</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/multiprocessing.html#cleanup">Cleanup</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#module-multiprocessing.pool">Process Pools</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#module-multiprocessing.connection">Listeners and Clients</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/multiprocessing.html#address-formats">Address Formats</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#authentication-keys">Authentication keys</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#logging">日志</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#module-multiprocessing.dummy">The <code class="docutils literal notranslate"><span class="pre">multiprocessing.dummy</span></code> module</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/multiprocessing.html#programming-guidelines">Programming guidelines</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#all-start-methods">All start methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/multiprocessing.html#the-spawn-and-forkserver-start-methods">The <em>spawn</em> and <em>forkserver</em> start methods</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/multiprocessing.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/concurrent.html"><code class="docutils literal notranslate"><span class="pre">concurrent</span></code> 包</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/concurrent.futures.html"><code class="docutils literal notranslate"><span class="pre">concurrent.futures</span></code> --- 启动并行任务</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#executor-objects">执行器对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#threadpoolexecutor">ThreadPoolExecutor</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/concurrent.futures.html#threadpoolexecutor-example">ProcessPoolExecutor例子</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#processpoolexecutor">ProcessPoolExecutor</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/concurrent.futures.html#processpoolexecutor-example">ProcessPoolExecutor Example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#future-objects">Future对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#module-functions">模块函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/concurrent.futures.html#exception-classes">Exception类</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/subprocess.html"><code class="docutils literal notranslate"><span class="pre">subprocess</span></code> --- 子进程管理</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#using-the-subprocess-module">使用 <code class="docutils literal notranslate"><span class="pre">subprocess</span></code> 模块</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#frequently-used-arguments">常用参数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#popen-constructor">Popen 构造函数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#security-considerations">安全考量</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#popen-objects">Popen 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#windows-popen-helpers">Windows Popen 助手</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#windows-constants">Windows Constants</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#older-high-level-api">Older high-level API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#replacing-older-functions-with-the-subprocess-module">Replacing Older Functions with the <code class="docutils literal notranslate"><span class="pre">subprocess</span></code> Module</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-bin-sh-shell-backquote">Replacing /bin/sh shell backquote</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-shell-pipeline">Replacing shell pipeline</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-os-system">Replacing <code class="docutils literal notranslate"><span class="pre">os.system()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-the-os-spawn-family">Replacing the <code class="docutils literal notranslate"><span class="pre">os.spawn</span></code> family</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-os-popen-os-popen2-os-popen3">Replacing <code class="docutils literal notranslate"><span class="pre">os.popen()</span></code>, <code class="docutils literal notranslate"><span class="pre">os.popen2()</span></code>, <code class="docutils literal notranslate"><span class="pre">os.popen3()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#replacing-functions-from-the-popen2-module">Replacing functions from the <code class="docutils literal notranslate"><span class="pre">popen2</span></code> module</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#legacy-shell-invocation-functions">Legacy Shell Invocation Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/subprocess.html#notes">注释</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows">Converting an argument sequence to a string on Windows</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/sched.html"><code class="docutils literal notranslate"><span class="pre">sched</span></code> --- 事件调度器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/sched.html#scheduler-objects">调度器对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/queue.html">模块:<cite>queue</cite> --- 一个同步的队列类</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/queue.html#queue-objects">Queue对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/queue.html#simplequeue-objects">SimpleQueue 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/_thread.html"><code class="docutils literal notranslate"><span class="pre">_thread</span></code> --- 底层多线程 API</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/_dummy_thread.html"><code class="docutils literal notranslate"><span class="pre">_dummy_thread</span></code> --- <code class="docutils literal notranslate"><span class="pre">_thread</span></code> 的替代模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/dummy_threading.html"><code class="docutils literal notranslate"><span class="pre">dummy_threading</span></code> ---  可直接替代 <code class="docutils literal notranslate"><span class="pre">threading</span></code> 模块。</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/contextvars.html"><code class="docutils literal notranslate"><span class="pre">contextvars</span></code> --- Context Variables</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/contextvars.html#context-variables">Context Variables</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/contextvars.html#manual-context-management">Manual Context Management</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/contextvars.html#asyncio-support">asyncio support</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/ipc.html">网络和进程间通信</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/asyncio.html"><code class="docutils literal notranslate"><span class="pre">asyncio</span></code> --- 异步 I/O</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-task.html">协程与任务</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#coroutines">协程</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#awaitables">可等待对象</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#running-an-asyncio-program">运行 asyncio 程序</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#creating-tasks">创建任务</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#sleeping">休眠</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#running-tasks-concurrently">并发运行任务</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#shielding-from-cancellation">屏蔽取消操作</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#timeouts">超时</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#waiting-primitives">简单等待</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#scheduling-from-other-threads">来自其他线程的日程安排</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#introspection">内省</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#task-object">Task 对象</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-task.html#generator-based-coroutines">基于生成器的协程</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-stream.html">流</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-stream.html#streamreader">StreamReader</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-stream.html#streamwriter">StreamWriter</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-stream.html#examples">示例</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-stream.html#tcp-echo-client-using-streams">TCP echo client using streams</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-stream.html#tcp-echo-server-using-streams">TCP echo server using streams</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-stream.html#get-http-headers">Get HTTP headers</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-stream.html#register-an-open-socket-to-wait-for-data-using-streams">Register an open socket to wait for data using streams</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-sync.html">Synchronization Primitives</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-sync.html#lock">Lock</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-sync.html#event">Event</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-sync.html#condition">Condition</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-sync.html#semaphore">Semaphore</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-sync.html#boundedsemaphore">BoundedSemaphore</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-subprocess.html">子进程</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-subprocess.html#creating-subprocesses">Creating Subprocesses</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-subprocess.html#constants">常数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-subprocess.html#interacting-with-subprocesses">Interacting with Subprocesses</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-subprocess.html#subprocess-and-threads">Subprocess and Threads</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-subprocess.html#examples">示例</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-queue.html">队列集</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-queue.html#queue">队列</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-queue.html#priority-queue">优先级队列</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-queue.html#lifo-queue">后进先出队列</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-queue.html#exceptions">异常</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-queue.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-exceptions.html">异常</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-eventloop.html">事件循环</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-eventloop.html#event-loop-methods">事件循环方法集</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#running-and-stopping-the-loop">Running and stopping the loop</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#scheduling-callbacks">Scheduling callbacks</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#scheduling-delayed-callbacks">Scheduling delayed callbacks</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#creating-futures-and-tasks">Creating Futures and Tasks</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#opening-network-connections">Opening network connections</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#creating-network-servers">Creating network servers</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#transferring-files">传输文件</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#tls-upgrade">TLS 升级</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#watching-file-descriptors">Watching file descriptors</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#working-with-socket-objects-directly">Working with socket objects directly</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#dns">DNS</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#working-with-pipes">Working with pipes</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#unix-signals">Unix 信号</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#executing-code-in-thread-or-process-pools">Executing code in thread or process pools</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#error-handling-api">错误处理API</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#enabling-debug-mode">Enabling debug mode</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#running-subprocesses">Running Subprocesses</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-eventloop.html#callback-handles">Callback Handles</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-eventloop.html#server-objects">Server Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-eventloop.html#event-loop-implementations">Event Loop Implementations</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-eventloop.html#examples">示例</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#hello-world-with-call-soon">call_soon() 的 Hello World 示例。</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#display-the-current-date-with-call-later">使用 call_later() 来展示当前的日期</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#watch-a-file-descriptor-for-read-events">监控一个文件描述符的读事件</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-eventloop.html#set-signal-handlers-for-sigint-and-sigterm">为SIGINT和SIGTERM设置信号处理器</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-future.html">Futures</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-future.html#future-functions">Future Functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-future.html#future-object">Future Object</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-protocol.html">Transports and Protocols</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-protocol.html#transports">传输</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#transports-hierarchy">Transports Hierarchy</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#base-transport">Base Transport</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#read-only-transports">Read-only Transports</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#write-only-transports">Write-only Transports</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#datagram-transports">Datagram Transports</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#subprocess-transports">Subprocess Transports</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-protocol.html#protocols">Protocols</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#base-protocols">Base Protocols</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#base-protocol">Base Protocol</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#streaming-protocols">Streaming Protocols</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#buffered-streaming-protocols">Buffered Streaming Protocols</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#datagram-protocols">Datagram Protocols</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#subprocess-protocols">Subprocess Protocols</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-protocol.html#examples">示例</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#tcp-echo-server">TCP Echo Server</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#tcp-echo-client">TCP Echo Client</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#udp-echo-server">UDP Echo Server</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#udp-echo-client">UDP Echo Client</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#connecting-existing-sockets">Connecting Existing Sockets</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-protocol.html#loop-subprocess-exec-and-subprocessprotocol">loop.subprocess_exec() and SubprocessProtocol</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-policy.html">Policies</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-policy.html#getting-and-setting-the-policy">Getting and Setting the Policy</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-policy.html#policy-objects">Policy Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-policy.html#process-watchers">Process Watchers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-policy.html#custom-policies">Custom Policies</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-platforms.html">Platform Support</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-platforms.html#all-platforms">All Platforms</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-platforms.html#windows">Windows</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/asyncio-platforms.html#subprocess-support-on-windows">Subprocess Support on Windows</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-platforms.html#macos">macOS</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-api-index.html">高级API索引</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#tasks">Tasks</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#queues">队列集</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#subprocesses">子进程集</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#streams">流</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#synchronization">同步</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-api-index.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-llapi-index.html">Low-level API Index</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-llapi-index.html#obtaining-the-event-loop">获取事件循环</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-llapi-index.html#event-loop-methods">事件循环方法集</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-llapi-index.html#transports">传输</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-llapi-index.html#protocols">Protocols</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-llapi-index.html#event-loop-policies">Event Loop Policies</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncio-dev.html">用 asyncio 开发</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#debug-mode">Debug 模式</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#concurrency-and-multithreading">并发性和多线程</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#running-blocking-code">运行阻塞的代码</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#logging">日志</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#detect-never-awaited-coroutines">检测 never-awaited 协同程序</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/asyncio-dev.html#detect-never-retrieved-exceptions">检测就再也没异常</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/socket.html"><code class="docutils literal notranslate"><span class="pre">socket</span></code> --- 底层网络接口</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/socket.html#socket-families">套接字协议族</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/socket.html#module-contents">Module contents</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/socket.html#exceptions">异常</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/socket.html#constants">常数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/socket.html#functions">Functions</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/socket.html#creating-sockets">Creating sockets</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/socket.html#other-functions">Other functions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/socket.html#socket-objects">Socket Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/socket.html#notes-on-socket-timeouts">Notes on socket timeouts</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/socket.html#timeouts-and-the-connect-method">Timeouts and the <code class="docutils literal notranslate"><span class="pre">connect</span></code> method</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/socket.html#timeouts-and-the-accept-method">Timeouts and the <code class="docutils literal notranslate"><span class="pre">accept</span></code> method</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/socket.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/ssl.html"><code class="docutils literal notranslate"><span class="pre">ssl</span></code> --- TLS/SSL wrapper for socket objects</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#functions-constants-and-exceptions">Functions, Constants, and Exceptions</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#socket-creation">Socket creation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#context-creation">Context creation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#exceptions">异常</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#random-generation">Random generation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#certificate-handling">Certificate handling</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#constants">常数</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#ssl-sockets">SSL Sockets</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#ssl-contexts">SSL Contexts</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#certificates">Certificates</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#certificate-chains">Certificate chains</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#ca-certificates">CA certificates</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#combined-key-and-certificate">Combined key and certificate</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#self-signed-certificates">Self-signed certificates</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#examples">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#testing-for-ssl-support">Testing for SSL support</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#client-side-operation">Client-side operation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#server-side-operation">Server-side operation</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#notes-on-non-blocking-sockets">Notes on non-blocking sockets</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#memory-bio-support">Memory BIO Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#ssl-session">SSL session</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#security-considerations">Security considerations</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#best-defaults">Best defaults</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#manual-settings">Manual settings</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/ssl.html#verifying-certificates">Verifying certificates</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/ssl.html#protocol-versions">Protocol versions</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/ssl.html#cipher-selection">Cipher selection</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/ssl.html#multi-processing">Multi-processing</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#tls-1-3">TLS 1.3</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ssl.html#libressl-support">LibreSSL support</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/select.html"><code class="docutils literal notranslate"><span class="pre">select</span></code> --- Waiting for I/O completion</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/select.html#dev-poll-polling-objects"><code class="docutils literal notranslate"><span class="pre">/dev/poll</span></code> Polling Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/select.html#edge-and-level-trigger-polling-epoll-objects">Edge and Level Trigger Polling (epoll) Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/select.html#polling-objects">Polling Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/select.html#kqueue-objects">Kqueue Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/select.html#kevent-objects">Kevent Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/selectors.html"><code class="docutils literal notranslate"><span class="pre">selectors</span></code> --- 高级 I/O 复用库</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/selectors.html#introduction">概述</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/selectors.html#classes">类</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/selectors.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/asyncore.html"><code class="docutils literal notranslate"><span class="pre">asyncore</span></code> --- 异步socket处理器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/asyncore.html#asyncore-example-basic-http-client">asyncore Example basic HTTP client</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/asyncore.html#asyncore-example-basic-echo-server">asyncore Example basic echo server</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/asynchat.html"><code class="docutils literal notranslate"><span class="pre">asynchat</span></code> --- 异步 socket 指令/响应 处理器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/asynchat.html#asynchat-example">asynchat Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/signal.html"><code class="docutils literal notranslate"><span class="pre">signal</span></code> --- Set handlers for asynchronous events</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/signal.html#general-rules">General rules</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/signal.html#execution-of-python-signal-handlers">Execution of Python signal handlers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/signal.html#signals-and-threads">Signals and threads</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/signal.html#module-contents">Module contents</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/signal.html#example">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/signal.html#note-on-sigpipe">Note on SIGPIPE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/mmap.html"><code class="docutils literal notranslate"><span class="pre">mmap</span></code> --- Memory-mapped file support</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/netdata.html">互联网数据处理</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/email.html"><code class="docutils literal notranslate"><span class="pre">email</span></code> --- 电子邮件与 MIME 处理包</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/email.message.html"><code class="docutils literal notranslate"><span class="pre">email.message</span></code>: Representing an email message</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.parser.html"><code class="docutils literal notranslate"><span class="pre">email.parser</span></code>: Parsing email messages</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/email.parser.html#feedparser-api">FeedParser API</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/email.parser.html#parser-api">Parser API</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/email.parser.html#additional-notes">Additional notes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/email.generator.html"><code class="docutils literal notranslate"><span class="pre">email.generator</span></code>: Generating MIME documents</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.policy.html"><code class="docutils literal notranslate"><span class="pre">email.policy</span></code>: Policy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.errors.html"><code class="docutils literal notranslate"><span class="pre">email.errors</span></code>: 异常和缺陷类</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.headerregistry.html"><code class="docutils literal notranslate"><span class="pre">email.headerregistry</span></code>: Custom Header Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.contentmanager.html"><code class="docutils literal notranslate"><span class="pre">email.contentmanager</span></code>: Managing MIME Content</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/email.contentmanager.html#content-manager-instances">Content Manager Instances</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/email.examples.html"><code class="docutils literal notranslate"><span class="pre">email</span></code>: 示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.compat32-message.html"><code class="docutils literal notranslate"><span class="pre">email.message.Message</span></code>: Representing an email message using the <code class="docutils literal notranslate"><span class="pre">compat32</span></code> API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.mime.html"><code class="docutils literal notranslate"><span class="pre">email.mime</span></code>: Creating email and MIME objects from scratch</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.header.html"><code class="docutils literal notranslate"><span class="pre">email.header</span></code>: Internationalized headers</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.charset.html"><code class="docutils literal notranslate"><span class="pre">email.charset</span></code>: Representing character sets</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.encoders.html"><code class="docutils literal notranslate"><span class="pre">email.encoders</span></code>: Encoders</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.utils.html"><code class="docutils literal notranslate"><span class="pre">email.utils</span></code>: 其他工具</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/email.iterators.html"><code class="docutils literal notranslate"><span class="pre">email.iterators</span></code>: Iterators</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/json.html"><code class="docutils literal notranslate"><span class="pre">json</span></code> --- JSON 编码和解码器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/json.html#basic-usage">Basic Usage</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/json.html#encoders-and-decoders">Encoders and Decoders</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/json.html#exceptions">异常</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/json.html#standard-compliance-and-interoperability">Standard Compliance and Interoperability</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#character-encodings">Character Encodings</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#infinite-and-nan-number-values">Infinite and NaN Number Values</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#repeated-names-within-an-object">Repeated Names Within an Object</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#top-level-non-object-non-array-values">Top-level Non-Object, Non-Array Values</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#implementation-limitations">Implementation Limitations</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/json.html#module-json.tool">Command Line Interface</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/json.html#command-line-options">Command line options</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/mailcap.html"><code class="docutils literal notranslate"><span class="pre">mailcap</span></code> --- Mailcap file handling</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/mailbox.html"><code class="docutils literal notranslate"><span class="pre">mailbox</span></code> --- Manipulate mailboxes in various formats</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/mailbox.html#mailbox-objects"><code class="docutils literal notranslate"><span class="pre">Mailbox</span></code> objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#maildir"><code class="docutils literal notranslate"><span class="pre">Maildir</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mbox"><code class="docutils literal notranslate"><span class="pre">mbox</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mh"><code class="docutils literal notranslate"><span class="pre">MH</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#babyl"><code class="docutils literal notranslate"><span class="pre">Babyl</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mmdf"><code class="docutils literal notranslate"><span class="pre">MMDF</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/mailbox.html#message-objects"><code class="docutils literal notranslate"><span class="pre">Message</span></code> objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#maildirmessage"><code class="docutils literal notranslate"><span class="pre">MaildirMessage</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mboxmessage"><code class="docutils literal notranslate"><span class="pre">mboxMessage</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mhmessage"><code class="docutils literal notranslate"><span class="pre">MHMessage</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#babylmessage"><code class="docutils literal notranslate"><span class="pre">BabylMessage</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="library/mailbox.html#mmdfmessage"><code class="docutils literal notranslate"><span class="pre">MMDFMessage</span></code></a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/mailbox.html#exceptions">异常</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/mailbox.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/mimetypes.html"><code class="docutils literal notranslate"><span class="pre">mimetypes</span></code> --- Map filenames to MIME types</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/mimetypes.html#mimetypes-objects">MimeTypes Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/base64.html"><code class="docutils literal notranslate"><span class="pre">base64</span></code> --- Base16, Base32, Base64, Base85 数据编码</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/binhex.html"><code class="docutils literal notranslate"><span class="pre">binhex</span></code> --- Encode and decode binhex4 files</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/binhex.html#notes">注释</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/binascii.html"><code class="docutils literal notranslate"><span class="pre">binascii</span></code> --- 二进制和 ASCII 码互转</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/quopri.html"><code class="docutils literal notranslate"><span class="pre">quopri</span></code> --- Encode and decode MIME quoted-printable data</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/uu.html"><code class="docutils literal notranslate"><span class="pre">uu</span></code> --- Encode and decode uuencode files</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/markup.html">结构化标记处理工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/html.html"><code class="docutils literal notranslate"><span class="pre">html</span></code> --- 超文本标记语言支持</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/html.parser.html"><code class="docutils literal notranslate"><span class="pre">html.parser</span></code> --- 简单的 HTML 和 XHTML 解析器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/html.parser.html#example-html-parser-application">HTML 解析器的示例程序</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/html.parser.html#htmlparser-methods"><code class="docutils literal notranslate"><span class="pre">HTMLParser</span></code> 方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/html.parser.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/html.entities.html"><code class="docutils literal notranslate"><span class="pre">html.entities</span></code> --- HTML 一般实体的定义</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.html">XML处理模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.html#xml-vulnerabilities">XML 漏洞</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.html#the-defusedxml-and-defusedexpat-packages"><code class="docutils literal notranslate"><span class="pre">defusedxml</span></code> 和 <code class="docutils literal notranslate"><span class="pre">defusedexpat</span></code> 软件包</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.etree.elementtree.html"><code class="docutils literal notranslate"><span class="pre">xml.etree.ElementTree</span></code> --- The ElementTree XML API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.etree.elementtree.html#tutorial">教程</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#xml-tree-and-elements">XML tree and elements</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#parsing-xml">Parsing XML</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#pull-api-for-non-blocking-parsing">Pull API for non-blocking parsing</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#finding-interesting-elements">Finding interesting elements</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#modifying-an-xml-file">Modifying an XML File</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#building-xml-documents">Building XML documents</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#parsing-xml-with-namespaces">Parsing XML with Namespaces</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#additional-resources">Additional resources</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.etree.elementtree.html#xpath-support">XPath support</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#example">示例</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#supported-xpath-syntax">Supported XPath syntax</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.etree.elementtree.html#reference">参考引用</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#functions">Functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#element-objects">Element Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#elementtree-objects">ElementTree Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#qname-objects">QName Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#treebuilder-objects">TreeBuilder Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#xmlparser-objects">XMLParser Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#xmlpullparser-objects">XMLPullParser Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.etree.elementtree.html#exceptions">异常</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.dom.html"><code class="docutils literal notranslate"><span class="pre">xml.dom</span></code> --- The Document Object Model API</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.html#module-contents">模块内容</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.html#objects-in-the-dom">Objects in the DOM</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#domimplementation-objects">DOMImplementation Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#node-objects">Node Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#nodelist-objects">NodeList Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#documenttype-objects">DocumentType Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#document-objects">Document Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#element-objects">Element Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#attr-objects">Attr Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#namednodemap-objects">NamedNodeMap Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#comment-objects">Comment Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#text-and-cdatasection-objects">Text and CDATASection Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#processinginstruction-objects">ProcessingInstruction Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.html#conformance">Conformance</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#type-mapping">Type Mapping</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/xml.dom.html#accessor-methods">Accessor Methods</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.dom.minidom.html"><code class="docutils literal notranslate"><span class="pre">xml.dom.minidom</span></code> --- Minimal DOM implementation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.minidom.html#dom-objects">DOM Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.minidom.html#dom-example">DOM Example</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.minidom.html#minidom-and-the-dom-standard">minidom and the DOM standard</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.dom.pulldom.html"><code class="docutils literal notranslate"><span class="pre">xml.dom.pulldom</span></code> --- Support for building partial DOM trees</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.dom.pulldom.html#domeventstream-objects">DOMEventStream Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.sax.html"><code class="docutils literal notranslate"><span class="pre">xml.sax</span></code> --- Support for SAX2 parsers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.html#saxexception-objects">SAXException Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.sax.handler.html"><code class="docutils literal notranslate"><span class="pre">xml.sax.handler</span></code> --- Base classes for SAX handlers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.handler.html#contenthandler-objects">ContentHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.handler.html#dtdhandler-objects">DTDHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.handler.html#entityresolver-objects">EntityResolver Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.handler.html#errorhandler-objects">ErrorHandler Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.sax.utils.html"><code class="docutils literal notranslate"><span class="pre">xml.sax.saxutils</span></code> --- SAX Utilities</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/xml.sax.reader.html"><code class="docutils literal notranslate"><span class="pre">xml.sax.xmlreader</span></code> --- Interface for XML parsers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#xmlreader-objects">XMLReader Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#incrementalparser-objects">IncrementalParser Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#locator-objects">Locator Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#inputsource-objects">InputSource Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#the-attributes-interface">The <code class="docutils literal notranslate"><span class="pre">Attributes</span></code> Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xml.sax.reader.html#the-attributesns-interface">The <code class="docutils literal notranslate"><span class="pre">AttributesNS</span></code> Interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pyexpat.html"><code class="docutils literal notranslate"><span class="pre">xml.parsers.expat</span></code> --- Fast XML parsing using Expat</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pyexpat.html#xmlparser-objects">XMLParser Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pyexpat.html#expaterror-exceptions">ExpatError Exceptions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pyexpat.html#example">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pyexpat.html#module-xml.parsers.expat.model">Content Model Descriptions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pyexpat.html#module-xml.parsers.expat.errors">Expat error constants</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/internet.html">互联网协议和支持</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/webbrowser.html"><code class="docutils literal notranslate"><span class="pre">webbrowser</span></code> --- 方便的Web浏览器控制器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/webbrowser.html#browser-controller-objects">浏览器控制器对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/cgi.html"><code class="docutils literal notranslate"><span class="pre">cgi</span></code> --- Common Gateway Interface support</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#introduction">概述</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#using-the-cgi-module">Using the cgi module</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#higher-level-interface">Higher Level Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#caring-about-security">Caring about security</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#installing-your-cgi-script-on-a-unix-system">Installing your CGI script on a Unix system</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#testing-your-cgi-script">Testing your CGI script</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#debugging-cgi-scripts">Debugging CGI scripts</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cgi.html#common-problems-and-solutions">Common problems and solutions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/cgitb.html"><code class="docutils literal notranslate"><span class="pre">cgitb</span></code> --- Traceback manager for CGI scripts</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/wsgiref.html"><code class="docutils literal notranslate"><span class="pre">wsgiref</span></code> --- WSGI Utilities and Reference Implementation</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#module-wsgiref.util"><code class="docutils literal notranslate"><span class="pre">wsgiref.util</span></code> -- WSGI environment utilities</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#module-wsgiref.headers"><code class="docutils literal notranslate"><span class="pre">wsgiref.headers</span></code> -- WSGI response header tools</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#module-wsgiref.simple_server"><code class="docutils literal notranslate"><span class="pre">wsgiref.simple_server</span></code> -- a simple WSGI HTTP server</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#module-wsgiref.validate"><code class="docutils literal notranslate"><span class="pre">wsgiref.validate</span></code> --- WSGI conformance checker</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#module-wsgiref.handlers"><code class="docutils literal notranslate"><span class="pre">wsgiref.handlers</span></code> -- server/gateway base classes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wsgiref.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.html"><code class="docutils literal notranslate"><span class="pre">urllib</span></code> --- URL 处理模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.request.html"><code class="docutils literal notranslate"><span class="pre">urllib.request</span></code> --- 用于打开 URL 的可扩展库</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#request-objects">Request Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#openerdirector-objects">OpenerDirector Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#basehandler-objects">BaseHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httpredirecthandler-objects">HTTPRedirectHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httpcookieprocessor-objects">HTTPCookieProcessor Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#proxyhandler-objects">ProxyHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httppasswordmgr-objects">HTTPPasswordMgr Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httppasswordmgrwithpriorauth-objects">HTTPPasswordMgrWithPriorAuth Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#abstractbasicauthhandler-objects">AbstractBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httpbasicauthhandler-objects">HTTPBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#proxybasicauthhandler-objects">ProxyBasicAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#abstractdigestauthhandler-objects">AbstractDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httpdigestauthhandler-objects">HTTPDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#proxydigestauthhandler-objects">ProxyDigestAuthHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httphandler-objects">HTTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httpshandler-objects">HTTPSHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#filehandler-objects">FileHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#datahandler-objects">DataHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#ftphandler-objects">FTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#cacheftphandler-objects">CacheFTPHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#unknownhandler-objects">UnknownHandler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#httperrorprocessor-objects">HTTPErrorProcessor Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#examples">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#legacy-interface">Legacy interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.request.html#urllib-request-restrictions"><code class="docutils literal notranslate"><span class="pre">urllib.request</span></code> Restrictions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.request.html#module-urllib.response"><code class="docutils literal notranslate"><span class="pre">urllib.response</span></code> --- Response classes used by urllib</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.parse.html"><code class="docutils literal notranslate"><span class="pre">urllib.parse</span></code> --- Parse URLs into components</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.parse.html#url-parsing">URL Parsing</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.parse.html#parsing-ascii-encoded-bytes">Parsing ASCII Encoded Bytes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.parse.html#structured-parse-results">Structured Parse Results</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/urllib.parse.html#url-quoting">URL Quoting</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.error.html"><code class="docutils literal notranslate"><span class="pre">urllib.error</span></code> --- Exception classes raised by urllib.request</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/urllib.robotparser.html"><code class="docutils literal notranslate"><span class="pre">urllib.robotparser</span></code> ---  Parser for robots.txt</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/http.html"><code class="docutils literal notranslate"><span class="pre">http</span></code> --- HTTP 模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/http.html#http-status-codes">HTTP 状态码</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/http.client.html"><cite>http.client</cite> --- HTTP协议客户端</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/http.client.html#httpconnection-objects">HTTPConnection Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.client.html#httpresponse-objects">HTTPResponse Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.client.html#examples">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.client.html#httpmessage-objects">HTTPMessage Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/ftplib.html"><code class="docutils literal notranslate"><span class="pre">ftplib</span></code> --- FTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ftplib.html#ftp-objects">FTP Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ftplib.html#ftp-tls-objects">FTP_TLS Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/poplib.html"><code class="docutils literal notranslate"><span class="pre">poplib</span></code> --- POP3 protocol client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/poplib.html#pop3-objects">POP3 Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/poplib.html#pop3-example">POP3 Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/imaplib.html"><code class="docutils literal notranslate"><span class="pre">imaplib</span></code> --- IMAP4 protocol client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/imaplib.html#imap4-objects">IMAP4 Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/imaplib.html#imap4-example">IMAP4 Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/nntplib.html"><code class="docutils literal notranslate"><span class="pre">nntplib</span></code> --- NNTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/nntplib.html#nntp-objects">NNTP Objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/nntplib.html#attributes">Attributes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/nntplib.html#methods">方法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/nntplib.html#utility-functions">Utility functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/smtplib.html"><code class="docutils literal notranslate"><span class="pre">smtplib</span></code> --- SMTP protocol client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/smtplib.html#smtp-objects">SMTP Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/smtplib.html#smtp-example">SMTP Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/smtpd.html"><code class="docutils literal notranslate"><span class="pre">smtpd</span></code> --- SMTP Server</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/smtpd.html#smtpserver-objects">SMTPServer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/smtpd.html#debuggingserver-objects">DebuggingServer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/smtpd.html#pureproxy-objects">PureProxy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/smtpd.html#mailmanproxy-objects">MailmanProxy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/smtpd.html#smtpchannel-objects">SMTPChannel Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/telnetlib.html"><code class="docutils literal notranslate"><span class="pre">telnetlib</span></code> --- Telnet client</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/telnetlib.html#telnet-objects">Telnet Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/telnetlib.html#telnet-example">Telnet Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/uuid.html"><code class="docutils literal notranslate"><span class="pre">uuid</span></code> --- UUID objects according to <strong>RFC 4122</strong></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/uuid.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/socketserver.html"><code class="docutils literal notranslate"><span class="pre">socketserver</span></code> --- A framework for network servers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/socketserver.html#server-creation-notes">Server Creation Notes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/socketserver.html#server-objects">Server Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/socketserver.html#request-handler-objects">Request Handler Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/socketserver.html#examples">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/socketserver.html#socketserver-tcpserver-example"><code class="docutils literal notranslate"><span class="pre">socketserver.TCPServer</span></code> Example</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/socketserver.html#socketserver-udpserver-example"><code class="docutils literal notranslate"><span class="pre">socketserver.UDPServer</span></code> Example</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/socketserver.html#asynchronous-mixins">Asynchronous Mixins</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/http.server.html"><code class="docutils literal notranslate"><span class="pre">http.server</span></code> --- HTTP 服务器</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/http.cookies.html"><code class="docutils literal notranslate"><span class="pre">http.cookies</span></code> --- HTTP state management</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookies.html#cookie-objects">Cookie Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookies.html#morsel-objects">Morsel Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookies.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/http.cookiejar.html"><code class="docutils literal notranslate"><span class="pre">http.cookiejar</span></code> --- Cookie handling for HTTP clients</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#cookiejar-and-filecookiejar-objects">CookieJar and FileCookieJar Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#filecookiejar-subclasses-and-co-operation-with-web-browsers">FileCookieJar subclasses and co-operation with web browsers</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#cookiepolicy-objects">CookiePolicy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#defaultcookiepolicy-objects">DefaultCookiePolicy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#cookie-objects">Cookie Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/http.cookiejar.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xmlrpc.html"><code class="docutils literal notranslate"><span class="pre">xmlrpc</span></code> --- XMLRPC 服务端与客户端模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/xmlrpc.client.html"><code class="docutils literal notranslate"><span class="pre">xmlrpc.client</span></code> --- XML-RPC client access</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#serverproxy-objects">ServerProxy Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#datetime-objects">DateTime 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#binary-objects">Binary Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#fault-objects">Fault Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#protocolerror-objects">ProtocolError Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#multicall-objects">MultiCall Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#convenience-functions">Convenience Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#example-of-client-usage">Example of Client Usage</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.client.html#example-of-client-and-server-usage">Example of Client and Server Usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/xmlrpc.server.html"><code class="docutils literal notranslate"><span class="pre">xmlrpc.server</span></code> --- Basic XML-RPC servers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.server.html#simplexmlrpcserver-objects">SimpleXMLRPCServer Objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/xmlrpc.server.html#simplexmlrpcserver-example">SimpleXMLRPCServer Example</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.server.html#cgixmlrpcrequesthandler">CGIXMLRPCRequestHandler</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.server.html#documenting-xmlrpc-server">Documenting XMLRPC server</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.server.html#docxmlrpcserver-objects">DocXMLRPCServer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/xmlrpc.server.html#doccgixmlrpcrequesthandler">DocCGIXMLRPCRequestHandler</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/ipaddress.html"><code class="docutils literal notranslate"><span class="pre">ipaddress</span></code> --- IPv4/IPv6 manipulation library</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#convenience-factory-functions">Convenience factory functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#ip-addresses">IP Addresses</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#address-objects">Address objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#conversion-to-strings-and-integers">Conversion to Strings and Integers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#operators">运算符</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#comparison-operators">Comparison operators</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#arithmetic-operators">Arithmetic operators</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#ip-network-definitions">IP Network definitions</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#prefix-net-mask-and-host-mask">Prefix, net mask and host mask</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#network-objects">Network objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#id1">运算符</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#logical-operators">Logical operators</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#iteration">Iteration</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#networks-as-containers-of-addresses">Networks as containers of addresses</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#interface-objects">Interface objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/ipaddress.html#id2">运算符</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/ipaddress.html#id3">Logical operators</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#other-module-level-functions">Other Module Level Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ipaddress.html#custom-exceptions">Custom Exceptions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/mm.html">多媒体服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/audioop.html"><code class="docutils literal notranslate"><span class="pre">audioop</span></code> --- Manipulate raw audio data</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/aifc.html"><code class="docutils literal notranslate"><span class="pre">aifc</span></code> --- Read and write AIFF and AIFC files</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/sunau.html"><code class="docutils literal notranslate"><span class="pre">sunau</span></code> --- 读写 Sun AU 文件</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/sunau.html#au-read-objects">AU_read Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sunau.html#au-write-objects">AU_write Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/wave.html"><code class="docutils literal notranslate"><span class="pre">wave</span></code> --- 读写WAV格式文件</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/wave.html#wave-read-objects">Wave_read对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/wave.html#wave-write-objects">Wave_write 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/chunk.html"><code class="docutils literal notranslate"><span class="pre">chunk</span></code> --- Read IFF chunked data</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/colorsys.html"><code class="docutils literal notranslate"><span class="pre">colorsys</span></code> --- Conversions between color systems</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/imghdr.html"><code class="docutils literal notranslate"><span class="pre">imghdr</span></code> --- 推测图像类型</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/sndhdr.html"><code class="docutils literal notranslate"><span class="pre">sndhdr</span></code> --- 推测声音文件的类型</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/ossaudiodev.html"><code class="docutils literal notranslate"><span class="pre">ossaudiodev</span></code> --- Access to OSS-compatible audio devices</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ossaudiodev.html#audio-device-objects">Audio Device Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ossaudiodev.html#mixer-device-objects">Mixer Device Objects</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/i18n.html">国际化</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/gettext.html"><code class="docutils literal notranslate"><span class="pre">gettext</span></code> --- Multilingual internationalization services</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/gettext.html#gnu-gettext-api">GNU <strong class="program">gettext</strong> API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/gettext.html#class-based-api">Class-based API</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#the-nulltranslations-class">The <code class="docutils literal notranslate"><span class="pre">NullTranslations</span></code> class</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#the-gnutranslations-class">The <code class="docutils literal notranslate"><span class="pre">GNUTranslations</span></code> class</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#solaris-message-catalog-support">Solaris message catalog support</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#the-catalog-constructor">The Catalog constructor</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/gettext.html#internationalizing-your-programs-and-modules">Internationalizing your programs and modules</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#localizing-your-module">Localizing your module</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#localizing-your-application">Localizing your application</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#changing-languages-on-the-fly">Changing languages on the fly</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/gettext.html#deferred-translations">Deferred translations</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/gettext.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/locale.html"><code class="docutils literal notranslate"><span class="pre">locale</span></code> --- Internationalization services</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/locale.html#background-details-hints-tips-and-caveats">Background, details, hints, tips and caveats</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/locale.html#for-extension-writers-and-programs-that-embed-python">For extension writers and programs that embed Python</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/locale.html#access-to-message-catalogs">Access to message catalogs</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/frameworks.html">程序框架</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/turtle.html"><code class="docutils literal notranslate"><span class="pre">turtle</span></code> --- 海龟绘图</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#introduction">概述</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#overview-of-available-turtle-and-screen-methods">可用的 Turtle 和 Screen 方法概览</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#turtle-methods">Turtle 方法</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#methods-of-turtlescreen-screen">TurtleScreen/Screen 方法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#methods-of-rawturtle-turtle-and-corresponding-functions">RawTurtle/Turtle 方法和对应函数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#turtle-motion">海龟动作</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#tell-turtle-s-state">获取海龟的状态</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#settings-for-measurement">度量单位设置</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#pen-control">画笔控制</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#drawing-state">绘图状态</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#color-control">颜色控制</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#filling">填充</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#more-drawing-control">更多绘图控制</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#turtle-state">海龟状态</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#visibility">可见性</a></li>
<li class="toctree-l6"><a class="reference internal" href="library/turtle.html#appearance">外观</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#using-events">使用事件</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#special-turtle-methods">特殊海龟方法</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#compound-shapes">复合形状</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#methods-of-turtlescreen-screen-and-corresponding-functions">TurtleScreen/Screen 方法及对应函数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#window-control">窗口控制</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#animation-control">动画控制</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#using-screen-events">使用屏幕事件</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#input-methods">输入方法</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#settings-and-special-methods">设置与特殊方法</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#methods-specific-to-screen-not-inherited-from-turtlescreen">Screen 专有方法, 而非继承自 TurtleScreen</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#public-classes">公共类</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#help-and-configuration">帮助与配置</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#how-to-use-help">如何使用帮助</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#translation-of-docstrings-into-different-languages">文档字符串翻译为不同的语言</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/turtle.html#how-to-configure-screen-and-turtles">如何配置 Screen 和 Turtle</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#module-turtledemo"><code class="docutils literal notranslate"><span class="pre">turtledemo</span></code> --- 演示脚本集</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#changes-since-python-2-6">Python 2.6 之后的变化</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/turtle.html#changes-since-python-3-0">Python 3.0 之后的变化</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/cmd.html"><code class="docutils literal notranslate"><span class="pre">cmd</span></code> --- 支持面向行的命令解释器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/cmd.html#cmd-objects">Cmd Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/cmd.html#cmd-example">Cmd Example</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/shlex.html"><code class="docutils literal notranslate"><span class="pre">shlex</span></code> --- Simple lexical analysis</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/shlex.html#shlex-objects">shlex Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/shlex.html#parsing-rules">Parsing Rules</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/shlex.html#improved-compatibility-with-shells">Improved Compatibility with Shells</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/tk.html">Tk图形用户界面(GUI)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/tkinter.html"><code class="docutils literal notranslate"><span class="pre">tkinter</span></code> --- Tcl/Tk的Python接口</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#tkinter-modules">Tkinter 模块</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#tkinter-life-preserver">Tkinter Life Preserver</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#how-to-use-this-section">How To Use This Section</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#a-simple-hello-world-program">A Simple Hello World Program</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#a-very-quick-look-at-tcl-tk">A (Very) Quick Look at Tcl/Tk</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#mapping-basic-tk-into-tkinter">Mapping Basic Tk into Tkinter</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#how-tk-and-tkinter-are-related">How Tk and Tkinter are Related</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#handy-reference">Handy Reference</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#setting-options">Setting Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#the-packer">The Packer</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#packer-options">Packer Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#coupling-widget-variables">Coupling Widget Variables</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#the-window-manager">The Window Manager</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#tk-option-data-types">Tk Option Data Types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#bindings-and-events">Bindings and Events</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#the-index-parameter">The index Parameter</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.html#images">Images</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.html#file-handlers">File Handlers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tkinter.ttk.html"><code class="docutils literal notranslate"><span class="pre">tkinter.ttk</span></code> --- Tk themed widgets</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#using-ttk">Using Ttk</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#ttk-widgets">Ttk Widgets</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#widget">Widget</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#standard-options">Standard Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#scrollable-widget-options">Scrollable Widget Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#label-options">Label Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#compatibility-options">Compatibility Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#widget-states">Widget States</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-widget">ttk.Widget</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#combobox">Combobox</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#options">Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#virtual-events">Virtual events</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-combobox">ttk.Combobox</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#spinbox">Spinbox</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id1">Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id2">Virtual events</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-spinbox">ttk.Spinbox</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#notebook">Notebook</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id3">Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#tab-options">Tab Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#tab-identifiers">Tab Identifiers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id4">Virtual Events</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-notebook">ttk.Notebook</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#progressbar">Progressbar</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id5">Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-progressbar">ttk.Progressbar</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#separator">Separator</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id6">Options</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#sizegrip">Sizegrip</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#platform-specific-notes">Platform-specific notes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#bugs">Bugs</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#treeview">Treeview</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id7">Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#item-options">Item Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#tag-options">Tag Options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#column-identifiers">Column Identifiers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#id8">Virtual Events</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#ttk-treeview">ttk.Treeview</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.ttk.html#ttk-styling">Ttk Styling</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.ttk.html#layouts">Layouts</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tkinter.tix.html"><code class="docutils literal notranslate"><span class="pre">tkinter.tix</span></code> --- Extension widgets for Tk</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.tix.html#using-tix">Using Tix</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.tix.html#tix-widgets">Tix Widgets</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#basic-widgets">Basic Widgets</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#file-selectors">File Selectors</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#hierarchical-listbox">Hierarchical ListBox</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#tabular-listbox">Tabular ListBox</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#manager-widgets">Manager Widgets</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#image-types">Image Types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#miscellaneous-widgets">Miscellaneous Widgets</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tkinter.tix.html#form-geometry-manager">Form Geometry Manager</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tkinter.tix.html#tix-commands">Tix Commands</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tkinter.scrolledtext.html"><code class="docutils literal notranslate"><span class="pre">tkinter.scrolledtext</span></code> --- Scrolled Text Widget</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/idle.html">IDLE</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/idle.html#menus">Menus</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#file-menu-shell-and-editor">File menu (Shell and Editor)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#edit-menu-shell-and-editor">Edit menu (Shell and Editor)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#format-menu-editor-window-only">Format menu (Editor window only)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#run-menu-editor-window-only">Run menu (Editor window only)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#shell-menu-shell-window-only">Shell menu (Shell window only)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#debug-menu-shell-window-only">Debug menu (Shell window only)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#options-menu-shell-and-editor">Options menu (Shell and Editor)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#window-menu-shell-and-editor">Window menu (Shell and Editor)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#help-menu-shell-and-editor">Help menu (Shell and Editor)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#context-menus">Context Menus</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/idle.html#editing-and-navigation">Editing and navigation</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#editor-windows">Editor windows</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#key-bindings">Key bindings</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#automatic-indentation">Automatic indentation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#completions">Completions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#calltips">Calltips</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#code-context">Code Context</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#python-shell-window">Python Shell window</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#text-colors">Text colors</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/idle.html#startup-and-code-execution">Startup and code execution</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#command-line-usage">Command line usage</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#startup-failure">Startup failure</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#running-user-code">Running user code</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#user-output-in-shell">User output in Shell</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#developing-tkinter-applications">Developing tkinter applications</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#running-without-a-subprocess">Running without a subprocess</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/idle.html#help-and-preferences">Help and preferences</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#help-sources">Help sources</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#setting-preferences">Setting preferences</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#idle-on-macos">IDLE on macOS</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/idle.html#extensions">Extensions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/othergui.html">其他图形用户界面（GUI）包</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/development.html">开发工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/typing.html"><code class="docutils literal notranslate"><span class="pre">typing</span></code> --- 类型标注支持</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#type-aliases">类型别名</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#newtype">NewType</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#callable">Callable</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#generics">泛型(Generics)</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#user-defined-generic-types">用户定义的泛型类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#the-any-type"><code class="docutils literal notranslate"><span class="pre">Any</span></code> 类型</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/typing.html#classes-functions-and-decorators">Classes, functions, and decorators</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pydoc.html"><code class="docutils literal notranslate"><span class="pre">pydoc</span></code> --- Documentation generator and online help system</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/doctest.html"><code class="docutils literal notranslate"><span class="pre">doctest</span></code> --- Test interactive Python examples</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#simple-usage-checking-examples-in-docstrings">Simple Usage: Checking Examples in Docstrings</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#simple-usage-checking-examples-in-a-text-file">Simple Usage: Checking Examples in a Text File</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#how-it-works">How It Works</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#which-docstrings-are-examined">Which Docstrings Are Examined?</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#how-are-docstring-examples-recognized">How are Docstring Examples Recognized?</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#what-s-the-execution-context">What's the Execution Context?</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#what-about-exceptions">What About Exceptions?</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#option-flags">Option Flags</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#directives">Directives</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#warnings">警告</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#basic-api">Basic API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#unittest-api">Unittest API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#advanced-api">Advanced API</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#doctest-objects">DocTest Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#example-objects">Example Objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#doctestfinder-objects">DocTestFinder objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#doctestparser-objects">DocTestParser objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#doctestrunner-objects">DocTestRunner objects</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/doctest.html#outputchecker-objects">OutputChecker objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#debugging">Debugging</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/doctest.html#soapbox">Soapbox</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/unittest.html"><code class="docutils literal notranslate"><span class="pre">unittest</span></code> --- 单元测试框架</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#basic-example">基本实例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#command-line-interface">命令行界面</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#command-line-options">Command-line options</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#test-discovery">Test Discovery</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#organizing-test-code">Organizing test code</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#re-using-old-test-code">Re-using old test code</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#skipping-tests-and-expected-failures">Skipping tests and expected failures</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#distinguishing-test-iterations-using-subtests">Distinguishing test iterations using subtests</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#classes-and-functions">Classes and functions</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#test-cases">Test cases</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/unittest.html#deprecated-aliases">Deprecated aliases</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#grouping-tests">Grouping tests</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#loading-and-running-tests">Loading and running tests</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/unittest.html#load-tests-protocol">load_tests Protocol</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#class-and-module-fixtures">Class and Module Fixtures</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#setupclass-and-teardownclass">setUpClass and tearDownClass</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.html#setupmodule-and-teardownmodule">setUpModule and tearDownModule</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.html#signal-handling">Signal Handling</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/unittest.mock.html"><code class="docutils literal notranslate"><span class="pre">unittest.mock</span></code> --- mock object library</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock.html#quick-guide">Quick Guide</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock.html#the-mock-class">The Mock Class</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#calling">Calling</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#deleting-attributes">Deleting Attributes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#mock-names-and-the-name-attribute">Mock names and the name attribute</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#attaching-mocks-as-attributes">Attaching Mocks as Attributes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock.html#the-patchers">The patchers</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch">patch</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch-object">patch.object</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch-dict">patch.dict</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch-multiple">patch.multiple</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch-methods-start-and-stop">patch methods: start and stop</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patch-builtins">patch builtins</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#test-prefix">TEST_PREFIX</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#nesting-patch-decorators">Nesting Patch Decorators</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#where-to-patch">Where to patch</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#patching-descriptors-and-proxy-objects">Patching Descriptors and Proxy Objects</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock.html#magicmock-and-magic-method-support">MagicMock and magic method support</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#mocking-magic-methods">Mocking Magic Methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#magic-mock">Magic Mock</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock.html#helpers">Helpers</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#sentinel">sentinel</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#default">DEFAULT</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#call">call</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#create-autospec">create_autospec</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#any">ANY</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#filter-dir">FILTER_DIR</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#mock-open">mock_open</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#autospeccing">Autospeccing</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock.html#sealing-mocks">Sealing mocks</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/unittest.mock-examples.html"><code class="docutils literal notranslate"><span class="pre">unittest.mock</span></code> 上手指南</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock-examples.html#using-mock">使用 mock</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mock-patching-methods">模拟方法调用</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mock-for-method-calls-on-an-object">对象上的方法调用的 mock</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-classes">Mocking Classes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#naming-your-mocks">Naming your mocks</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#tracking-all-calls">Tracking all Calls</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#setting-return-values-and-attributes">Setting Return Values and Attributes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#raising-exceptions-with-mocks">Raising exceptions with mocks</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#side-effect-functions-and-iterables">Side effect functions and iterables</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#creating-a-mock-from-an-existing-object">Creating a Mock from an Existing Object</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock-examples.html#patch-decorators">Patch Decorators</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/unittest.mock-examples.html#further-examples">Further Examples</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-chained-calls">Mocking chained calls</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#partial-mocking">Partial mocking</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-a-generator-method">Mocking a Generator Method</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#applying-the-same-patch-to-every-test-method">Applying the same patch to every test method</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-unbound-methods">Mocking Unbound Methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#checking-multiple-calls-with-mock">Checking multiple calls with mock</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#coping-with-mutable-arguments">Coping with mutable arguments</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#nesting-patches">Nesting Patches</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-a-dictionary-with-magicmock">Mocking a dictionary with MagicMock</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mock-subclasses-and-their-attributes">Mock subclasses and their attributes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#mocking-imports-with-patch-dict">Mocking imports with patch.dict</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#tracking-order-of-calls-and-less-verbose-call-assertions">Tracking order of calls and less verbose call assertions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/unittest.mock-examples.html#more-complex-argument-matching">More complex argument matching</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/2to3.html">2to3 - 自动将 Python 2 代码转为 Python 3 代码</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/2to3.html#using-2to3">使用 2to3</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/2to3.html#fixers">修复器</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/2to3.html#module-lib2to3"><code class="docutils literal notranslate"><span class="pre">lib2to3</span></code> —— 2to3 支持库</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/test.html"><code class="docutils literal notranslate"><span class="pre">test</span></code> --- Regression tests package for Python</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/test.html#writing-unit-tests-for-the-test-package">Writing Unit Tests for the <code class="docutils literal notranslate"><span class="pre">test</span></code> package</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/test.html#running-tests-using-the-command-line-interface">Running tests using the command-line interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/test.html#module-test.support"><code class="docutils literal notranslate"><span class="pre">test.support</span></code> --- Utilities for the Python test suite</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/test.html#module-test.support.script_helper"><code class="docutils literal notranslate"><span class="pre">test.support.script_helper</span></code> --- Utilities for the Python execution tests</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/debug.html">调试和分析</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/bdb.html"><code class="docutils literal notranslate"><span class="pre">bdb</span></code> --- Debugger framework</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/faulthandler.html"><code class="docutils literal notranslate"><span class="pre">faulthandler</span></code> --- Dump the Python traceback</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#dumping-the-traceback">Dumping the traceback</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#fault-handler-state">Fault handler state</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#dumping-the-tracebacks-after-a-timeout">Dumping the tracebacks after a timeout</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#dumping-the-traceback-on-a-user-signal">Dumping the traceback on a user signal</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#issue-with-file-descriptors">Issue with file descriptors</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/faulthandler.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pdb.html"><code class="docutils literal notranslate"><span class="pre">pdb</span></code> --- The Python Debugger</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pdb.html#debugger-commands">Debugger Commands</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/profile.html">The Python Profilers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#introduction-to-the-profilers">Introduction to the profilers</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#instant-user-s-manual">Instant User's Manual</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#module-cProfile"><code class="docutils literal notranslate"><span class="pre">profile</span></code> and <code class="docutils literal notranslate"><span class="pre">cProfile</span></code> Module Reference</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#the-stats-class">The <code class="docutils literal notranslate"><span class="pre">Stats</span></code> Class</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#what-is-deterministic-profiling">What Is Deterministic Profiling?</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#limitations">Limitations</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#calibration">Calibration</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/profile.html#using-a-custom-timer">Using a custom timer</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/timeit.html"><code class="docutils literal notranslate"><span class="pre">timeit</span></code> --- Measure execution time of small code snippets</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/timeit.html#basic-examples">Basic Examples</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/timeit.html#python-interface">Python Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/timeit.html#command-line-interface">命令行界面</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/timeit.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/trace.html"><code class="docutils literal notranslate"><span class="pre">trace</span></code> --- Trace or track Python statement execution</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/trace.html#command-line-usage">Command-Line Usage</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/trace.html#main-options">Main options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/trace.html#modifiers">Modifiers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/trace.html#filters">Filters</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/trace.html#programmatic-interface">Programmatic Interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tracemalloc.html"><code class="docutils literal notranslate"><span class="pre">tracemalloc</span></code> --- Trace memory allocations</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tracemalloc.html#examples">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#display-the-top-10">Display the top 10</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#compute-differences">Compute differences</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#get-the-traceback-of-a-memory-block">Get the traceback of a memory block</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#pretty-top">Pretty top</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/tracemalloc.html#api">API</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#functions">Functions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#domainfilter">DomainFilter</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#filter">Filter</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#frame">Frame</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#snapshot">Snapshot</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#statistic">Statistic</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#statisticdiff">StatisticDiff</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#trace">Trace</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/tracemalloc.html#traceback">Traceback</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/distribution.html">软件打包和分发</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/distutils.html"><code class="docutils literal notranslate"><span class="pre">distutils</span></code> --- Building and installing Python modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/ensurepip.html"><code class="docutils literal notranslate"><span class="pre">ensurepip</span></code> --- Bootstrapping the <code class="docutils literal notranslate"><span class="pre">pip</span></code> installer</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ensurepip.html#command-line-interface">Command line interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ensurepip.html#module-api">Module API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/venv.html"><code class="docutils literal notranslate"><span class="pre">venv</span></code> --- 创建虚拟环境</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/venv.html#creating-virtual-environments">创建虚拟环境</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/venv.html#api">API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/venv.html#an-example-of-extending-envbuilder">一个扩展 <code class="docutils literal notranslate"><span class="pre">EnvBuilder</span></code> 的例子</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/zipapp.html"><code class="docutils literal notranslate"><span class="pre">zipapp</span></code> --- Manage executable Python zip archives</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#basic-example">Basic Example</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#command-line-interface">命令行界面</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#python-api">Python API</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#examples">示例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#specifying-the-interpreter">Specifying the Interpreter</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#creating-standalone-applications-with-zipapp">Creating Standalone Applications with zipapp</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/zipapp.html#making-a-windows-executable">Making a Windows executable</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/zipapp.html#caveats">Caveats</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/zipapp.html#the-python-zip-application-archive-format">The Python Zip Application Archive Format</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/python.html">Python运行时服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/sys.html"><code class="docutils literal notranslate"><span class="pre">sys</span></code> --- 系统相关的参数和函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/sysconfig.html"><code class="docutils literal notranslate"><span class="pre">sysconfig</span></code> --- Provide access to Python's configuration information</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/sysconfig.html#configuration-variables">Configuration variables</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sysconfig.html#installation-paths">Installation paths</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sysconfig.html#other-functions">Other functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/sysconfig.html#using-sysconfig-as-a-script">Using <code class="docutils literal notranslate"><span class="pre">sysconfig</span></code> as a script</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/builtins.html"><code class="docutils literal notranslate"><span class="pre">builtins</span></code> --- 内建对象</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/__main__.html"><code class="docutils literal notranslate"><span class="pre">__main__</span></code> --- 顶层脚本环境</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/warnings.html"><code class="docutils literal notranslate"><span class="pre">warnings</span></code> --- Warning control</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#warning-categories">Warning Categories</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#the-warnings-filter">The Warnings Filter</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/warnings.html#describing-warning-filters">Describing Warning Filters</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/warnings.html#default-warning-filter">Default Warning Filter</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/warnings.html#overriding-the-default-filter">Overriding the default filter</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#temporarily-suppressing-warnings">Temporarily Suppressing Warnings</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#testing-warnings">Testing Warnings</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#updating-code-for-new-versions-of-dependencies">Updating Code For New Versions of Dependencies</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#available-functions">Available Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/warnings.html#available-context-managers">Available Context Managers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/dataclasses.html"><code class="docutils literal notranslate"><span class="pre">dataclasses</span></code> --- 数据类</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#module-level-decorators-classes-and-functions">模块级装饰器、类和函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#post-init-processing">初始化后处理</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#class-variables">类变量</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#init-only-variables">仅初始化变量</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#frozen-instances">冻结的实例</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#inheritance">继承</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#default-factory-functions">默认工厂函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#mutable-default-values">可变的默认值</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dataclasses.html#exceptions">异常</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/contextlib.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">contextlib</span></code> --- Utilities for <code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code>-statement contexts</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/contextlib.html#utilities">工具</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/contextlib.html#examples-and-recipes">例子和配方</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#supporting-a-variable-number-of-context-managers">Supporting a variable number of context managers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#catching-exceptions-from-enter-methods">Catching exceptions from <code class="docutils literal notranslate"><span class="pre">__enter__</span></code> methods</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#cleaning-up-in-an-enter-implementation">Cleaning up in an <code class="docutils literal notranslate"><span class="pre">__enter__</span></code> implementation</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#replacing-any-use-of-try-finally-and-flag-variables">Replacing any use of <code class="docutils literal notranslate"><span class="pre">try-finally</span></code> and flag variables</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#using-a-context-manager-as-a-function-decorator">Using a context manager as a function decorator</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/contextlib.html#single-use-reusable-and-reentrant-context-managers">Single use, reusable and reentrant context managers</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#reentrant-context-managers">Reentrant context managers</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/contextlib.html#reusable-context-managers">Reusable context managers</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/abc.html"><code class="docutils literal notranslate"><span class="pre">abc</span></code> --- 抽象基类</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/atexit.html"><code class="docutils literal notranslate"><span class="pre">atexit</span></code> --- 退出处理器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/atexit.html#atexit-example"><code class="docutils literal notranslate"><span class="pre">atexit</span></code> 示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/traceback.html"><code class="docutils literal notranslate"><span class="pre">traceback</span></code> --- Print or retrieve a stack traceback</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/traceback.html#tracebackexception-objects"><code class="docutils literal notranslate"><span class="pre">TracebackException</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/traceback.html#stacksummary-objects"><code class="docutils literal notranslate"><span class="pre">StackSummary</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/traceback.html#framesummary-objects"><code class="docutils literal notranslate"><span class="pre">FrameSummary</span></code> Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/traceback.html#traceback-examples">Traceback Examples</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/__future__.html"><code class="docutils literal notranslate"><span class="pre">__future__</span></code> --- Future 语句定义</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/gc.html"><code class="docutils literal notranslate"><span class="pre">gc</span></code> --- 垃圾回收器接口</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/inspect.html"><code class="docutils literal notranslate"><span class="pre">inspect</span></code> --- Inspect live objects</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#types-and-members">Types and members</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#retrieving-source-code">Retrieving source code</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#introspecting-callables-with-the-signature-object">Introspecting callables with the Signature object</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#classes-and-functions">Classes and functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#the-interpreter-stack">The interpreter stack</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#fetching-attributes-statically">Fetching attributes statically</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#current-state-of-generators-and-coroutines">Current State of Generators and Coroutines</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#code-objects-bit-flags">Code Objects Bit Flags</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/inspect.html#command-line-interface">Command Line Interface</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/site.html"><code class="docutils literal notranslate"><span class="pre">site</span></code> --- Site-specific configuration hook</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/site.html#readline-configuration">Readline configuration</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/site.html#module-contents">Module contents</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/custominterp.html">自定义 Python 解释器</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/code.html"><code class="docutils literal notranslate"><span class="pre">code</span></code> --- Interpreter base classes</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/code.html#interactive-interpreter-objects">Interactive Interpreter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/code.html#interactive-console-objects">Interactive Console Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/codeop.html"><code class="docutils literal notranslate"><span class="pre">codeop</span></code> --- Compile Python code</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/modules.html">导入模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/zipimport.html"><code class="docutils literal notranslate"><span class="pre">zipimport</span></code> --- Import modules from Zip archives</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/zipimport.html#zipimporter-objects">zipimporter Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/zipimport.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pkgutil.html"><code class="docutils literal notranslate"><span class="pre">pkgutil</span></code> --- Package extension utility</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/modulefinder.html"><code class="docutils literal notranslate"><span class="pre">modulefinder</span></code> --- 查找脚本使用的模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/modulefinder.html#example-usage-of-modulefinder"><code class="docutils literal notranslate"><span class="pre">ModuleFinder</span></code> 的示例用法</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/runpy.html"><code class="docutils literal notranslate"><span class="pre">runpy</span></code> --- Locating and executing Python modules</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/importlib.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">importlib</span></code> --- The implementation of <code class="xref std std-keyword docutils literal notranslate"><span class="pre">import</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#introduction">概述</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#module-importlib.abc"><code class="docutils literal notranslate"><span class="pre">importlib.abc</span></code> -- Abstract base classes related to import</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#module-importlib.resources"><code class="docutils literal notranslate"><span class="pre">importlib.resources</span></code> -- Resources</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#module-importlib.machinery"><code class="docutils literal notranslate"><span class="pre">importlib.machinery</span></code> -- Importers and path hooks</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#module-importlib.util"><code class="docutils literal notranslate"><span class="pre">importlib.util</span></code> -- Utility code for importers</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/importlib.html#examples">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/importlib.html#importing-programmatically">Importing programmatically</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/importlib.html#checking-if-a-module-can-be-imported">Checking if a module can be imported</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/importlib.html#importing-a-source-file-directly">Importing a source file directly</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/importlib.html#setting-up-an-importer">Setting up an importer</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/importlib.html#approximating-importlib-import-module">Approximating <code class="docutils literal notranslate"><span class="pre">importlib.import_module()</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/language.html">Python 语言服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/parser.html"><code class="docutils literal notranslate"><span class="pre">parser</span></code> --- Access Python parse trees</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#creating-st-objects">Creating ST Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#converting-st-objects">Converting ST Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#queries-on-st-objects">Queries on ST Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#exceptions-and-error-handling">Exceptions and Error Handling</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#st-objects">ST Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/parser.html#example-emulation-of-compile">Example: Emulation of <code class="docutils literal notranslate"><span class="pre">compile()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/ast.html"><code class="docutils literal notranslate"><span class="pre">ast</span></code> --- 抽象语法树</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/ast.html#node-classes">节点类</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ast.html#abstract-grammar">抽象文法</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/ast.html#ast-helpers"><code class="docutils literal notranslate"><span class="pre">ast</span></code> 中的辅助函数</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/symtable.html"><code class="docutils literal notranslate"><span class="pre">symtable</span></code> --- Access to the compiler's symbol tables</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/symtable.html#generating-symbol-tables">Generating Symbol Tables</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/symtable.html#examining-symbol-tables">Examining Symbol Tables</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/symbol.html"><code class="docutils literal notranslate"><span class="pre">symbol</span></code> --- 与 Python 解析树一起使用的常量</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/token.html"><code class="docutils literal notranslate"><span class="pre">token</span></code> --- 与Python解析树一起使用的常量</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/keyword.html"><code class="docutils literal notranslate"><span class="pre">keyword</span></code> --- 检验Python关键字</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/tokenize.html"><code class="docutils literal notranslate"><span class="pre">tokenize</span></code> --- Tokenizer for Python source</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/tokenize.html#tokenizing-input">Tokenizing Input</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tokenize.html#command-line-usage">Command-Line Usage</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/tokenize.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tabnanny.html"><code class="docutils literal notranslate"><span class="pre">tabnanny</span></code> --- Detection of ambiguous indentation</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/pyclbr.html"><code class="docutils literal notranslate"><span class="pre">pyclbr</span></code> --- Python class browser support</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pyclbr.html#function-objects">函数对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/pyclbr.html#class-objects">类对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/py_compile.html"><code class="docutils literal notranslate"><span class="pre">py_compile</span></code> --- Compile Python source files</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/compileall.html"><code class="docutils literal notranslate"><span class="pre">compileall</span></code> --- Byte-compile Python libraries</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/compileall.html#command-line-use">Command-line use</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/compileall.html#public-functions">Public functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/dis.html"><code class="docutils literal notranslate"><span class="pre">dis</span></code> --- Python 字节码反汇编器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/dis.html#bytecode-analysis">Bytecode analysis</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dis.html#analysis-functions">Analysis functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dis.html#python-bytecode-instructions">Python Bytecode Instructions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/dis.html#opcode-collections">Opcode collections</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pickletools.html"><code class="docutils literal notranslate"><span class="pre">pickletools</span></code> --- Tools for pickle developers</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pickletools.html#command-line-usage">Command line usage</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/pickletools.html#command-line-options">Command line options</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/pickletools.html#programmatic-interface">Programmatic Interface</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/misc.html">杂项服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/formatter.html"><code class="docutils literal notranslate"><span class="pre">formatter</span></code> --- Generic output formatting</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/formatter.html#the-formatter-interface">The Formatter Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/formatter.html#formatter-implementations">Formatter Implementations</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/formatter.html#the-writer-interface">The Writer Interface</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/formatter.html#writer-implementations">Writer Implementations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/windows.html">Windows系统相关模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/msilib.html"><code class="docutils literal notranslate"><span class="pre">msilib</span></code> --- Read and write Microsoft Installer files</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#database-objects">Database Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#view-objects">View Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#summary-information-objects">Summary Information Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#record-objects">Record Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#errors">Errors</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#cab-objects">CAB Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#directory-objects">Directory Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#features">相关特性</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#gui-classes">GUI classes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msilib.html#precomputed-tables">Precomputed tables</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/msvcrt.html"><code class="docutils literal notranslate"><span class="pre">msvcrt</span></code> --- Useful routines from the MS VC++ runtime</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/msvcrt.html#file-operations">File Operations</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msvcrt.html#console-i-o">Console I/O</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/msvcrt.html#other-functions">Other Functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/winreg.html"><code class="docutils literal notranslate"><span class="pre">winreg</span></code> --- Windows registry access</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/winreg.html#functions">Functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/winreg.html#constants">常数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/winreg.html#hkey-constants">HKEY_* Constants</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/winreg.html#access-rights">Access Rights</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/winreg.html#bit-specific">64-bit Specific</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/winreg.html#value-types">Value Types</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/winreg.html#registry-handle-objects">Registry Handle Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/winsound.html"><code class="docutils literal notranslate"><span class="pre">winsound</span></code> --- Sound-playing interface for Windows</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/unix.html">Unix 专有服务</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/posix.html"><code class="docutils literal notranslate"><span class="pre">posix</span></code> --- The most common POSIX system calls</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/posix.html#large-file-support">Large File Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/posix.html#notable-module-contents">Notable Module Contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/pwd.html"><code class="docutils literal notranslate"><span class="pre">pwd</span></code> --- 用户密码数据库</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/spwd.html"><code class="docutils literal notranslate"><span class="pre">spwd</span></code> --- The shadow password database</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/grp.html"><code class="docutils literal notranslate"><span class="pre">grp</span></code> --- The group database</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/crypt.html"><code class="docutils literal notranslate"><span class="pre">crypt</span></code> --- Function to check Unix passwords</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/crypt.html#hashing-methods">Hashing Methods</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/crypt.html#module-attributes">Module Attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/crypt.html#module-functions">模块函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/crypt.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/termios.html"><code class="docutils literal notranslate"><span class="pre">termios</span></code> --- POSIX style tty control</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/termios.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/tty.html"><code class="docutils literal notranslate"><span class="pre">tty</span></code> --- 终端控制功能</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/pty.html"><code class="docutils literal notranslate"><span class="pre">pty</span></code> --- Pseudo-terminal utilities</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pty.html#example">示例</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/fcntl.html"><code class="docutils literal notranslate"><span class="pre">fcntl</span></code> --- The <code class="docutils literal notranslate"><span class="pre">fcntl</span></code> and <code class="docutils literal notranslate"><span class="pre">ioctl</span></code> system calls</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/pipes.html"><code class="docutils literal notranslate"><span class="pre">pipes</span></code> --- Interface to shell pipelines</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/pipes.html#template-objects">Template Objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/resource.html"><code class="docutils literal notranslate"><span class="pre">resource</span></code> --- Resource usage information</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/resource.html#resource-limits">Resource Limits</a></li>
<li class="toctree-l4"><a class="reference internal" href="library/resource.html#resource-usage">Resource Usage</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/nis.html"><code class="docutils literal notranslate"><span class="pre">nis</span></code> --- Interface to Sun's NIS (Yellow Pages)</a></li>
<li class="toctree-l3"><a class="reference internal" href="library/syslog.html">Unix syslog 库例程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/syslog.html#examples">示例</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/syslog.html#simple-example">Simple example</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/superseded.html">被取代的模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/optparse.html"><code class="docutils literal notranslate"><span class="pre">optparse</span></code> --- Parser for command line options</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/optparse.html#background">Background</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#terminology">Terminology</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#what-are-options-for">What are options for?</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#what-are-positional-arguments-for">What are positional arguments for?</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/optparse.html#tutorial">教程</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#understanding-option-actions">Understanding option actions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#the-store-action">The store action</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#handling-boolean-flag-options">Handling boolean (flag) options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#other-actions">Other actions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#default-values">Default values</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#generating-help">Generating help</a><ul>
<li class="toctree-l6"><a class="reference internal" href="library/optparse.html#grouping-options">Grouping Options</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#printing-a-version-string">Printing a version string</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#how-optparse-handles-errors">How <code class="docutils literal notranslate"><span class="pre">optparse</span></code> handles errors</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#putting-it-all-together">Putting it all together</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/optparse.html#reference-guide">Reference Guide</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#creating-the-parser">Creating the parser</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#populating-the-parser">Populating the parser</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#defining-options">Defining options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#option-attributes">Option attributes</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#standard-option-actions">Standard option actions</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#standard-option-types">Standard option types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#parsing-arguments">解析参数</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#querying-and-manipulating-your-option-parser">Querying and manipulating your option parser</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#conflicts-between-options">Conflicts between options</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#cleanup">Cleanup</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#other-methods">Other methods</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/optparse.html#option-callbacks">Option Callbacks</a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#defining-a-callback-option">Defining a callback option</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#how-callbacks-are-called">How callbacks are called</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#raising-errors-in-a-callback">Raising errors in a callback</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-1-trivial-callback">Callback example 1: trivial callback</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-2-check-option-order">Callback example 2: check option order</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-3-check-option-order-generalized">Callback example 3: check option order (generalized)</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-4-check-arbitrary-condition">Callback example 4: check arbitrary condition</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-5-fixed-arguments">Callback example 5: fixed arguments</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#callback-example-6-variable-arguments">Callback example 6: variable arguments</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="library/optparse.html#extending-optparse">Extending <code class="docutils literal notranslate"><span class="pre">optparse</span></code></a><ul>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#adding-new-types">Adding new types</a></li>
<li class="toctree-l5"><a class="reference internal" href="library/optparse.html#adding-new-actions">Adding new actions</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="library/imp.html"><code class="docutils literal notranslate"><span class="pre">imp</span></code> --- Access the <code class="docutils literal notranslate"><span class="pre">import</span></code> internals</a><ul>
<li class="toctree-l4"><a class="reference internal" href="library/imp.html#examples">示例</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="library/undoc.html">未创建文档的模块</a><ul>
<li class="toctree-l3"><a class="reference internal" href="library/undoc.html#platform-specific-modules">平台特定模块</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="extending/index.html">扩展和嵌入 Python 解释器</a><ul>
<li class="toctree-l2"><a class="reference internal" href="extending/index.html#recommended-third-party-tools">推荐的第三方工具</a></li>
<li class="toctree-l2"><a class="reference internal" href="extending/index.html#creating-extensions-without-third-party-tools">不使用第三方工具创建扩展</a><ul>
<li class="toctree-l3"><a class="reference internal" href="extending/extending.html">1. 使用 C 或 C++ 扩展 Python</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#a-simple-example">1.1. 一个简单的例子</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#intermezzo-errors-and-exceptions">1.2. 关于错误和异常</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#back-to-the-example">1.3. 回到例子</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#the-module-s-method-table-and-initialization-function">1.4. 模块方法表和初始化函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#compilation-and-linkage">1.5. 编译和链接</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#calling-python-functions-from-c">1.6. 在C中调用Python函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#extracting-parameters-in-extension-functions">1.7. 提取扩展函数的参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#keyword-parameters-for-extension-functions">1.8. 给扩展函数的关键字参数</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#building-arbitrary-values">1.9. 构造任意值</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#reference-counts">1.10. 引用计数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="extending/extending.html#reference-counting-in-python">1.10.1. Reference Counting in Python</a></li>
<li class="toctree-l5"><a class="reference internal" href="extending/extending.html#ownership-rules">1.10.2. Ownership Rules</a></li>
<li class="toctree-l5"><a class="reference internal" href="extending/extending.html#thin-ice">1.10.3. Thin Ice</a></li>
<li class="toctree-l5"><a class="reference internal" href="extending/extending.html#null-pointers">1.10.4. NULL Pointers</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#writing-extensions-in-c">1.11. Writing Extensions in C++</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/extending.html#providing-a-c-api-for-an-extension-module">1.12. Providing a C API for an Extension Module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="extending/newtypes_tutorial.html">2. 自定义扩展类型：教程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes_tutorial.html#the-basics">2.1. 基础</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes_tutorial.html#adding-data-and-methods-to-the-basic-example">2.2. Adding data and methods to the Basic example</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes_tutorial.html#providing-finer-control-over-data-attributes">2.3. Providing finer control over data attributes</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes_tutorial.html#supporting-cyclic-garbage-collection">2.4. Supporting cyclic garbage collection</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes_tutorial.html#subclassing-other-types">2.5. Subclassing other types</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="extending/newtypes.html">3. 定义扩展类型：已分类主题</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#finalization-and-de-allocation">3.1. 终结和内存释放</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#object-presentation">3.2. 对象展示</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#attribute-management">3.3. Attribute Management</a><ul>
<li class="toctree-l5"><a class="reference internal" href="extending/newtypes.html#generic-attribute-management">3.3.1. Generic Attribute Management</a></li>
<li class="toctree-l5"><a class="reference internal" href="extending/newtypes.html#type-specific-attribute-management">3.3.2. Type-specific Attribute Management</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#object-comparison">3.4. Object Comparison</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#abstract-protocol-support">3.5. Abstract Protocol Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#weak-reference-support">3.6. Weak Reference Support</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/newtypes.html#more-suggestions">3.7. 更多建议</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="extending/building.html">4. Building C and C++ Extensions</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/building.html#building-c-and-c-extensions-with-distutils">4.1. Building C and C++ Extensions with distutils</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/building.html#distributing-your-extension-modules">4.2. Distributing your extension modules</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="extending/windows.html">5. 在Windows平台编译C和C++扩展</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/windows.html#a-cookbook-approach">5.1. A Cookbook Approach</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/windows.html#differences-between-unix-and-windows">5.2. Differences Between Unix and Windows</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/windows.html#using-dlls-in-practice">5.3. Using DLLs in Practice</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="extending/index.html#embedding-the-cpython-runtime-in-a-larger-application">在更大的应用程序中嵌入 CPython 运行时</a><ul>
<li class="toctree-l3"><a class="reference internal" href="extending/embedding.html">1. Embedding Python in Another Application</a><ul>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#very-high-level-embedding">1.1. Very High Level Embedding</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#beyond-very-high-level-embedding-an-overview">1.2. Beyond Very High Level Embedding: An overview</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#pure-embedding">1.3. Pure Embedding</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#extending-embedded-python">1.4. Extending Embedded Python</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#embedding-python-in-c">1.5. Embedding Python in C++</a></li>
<li class="toctree-l4"><a class="reference internal" href="extending/embedding.html#compiling-and-linking-under-unix-like-systems">1.6. Compiling and Linking under Unix-like systems</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="c-api/index.html">Python/C API 参考手册</a><ul>
<li class="toctree-l2"><a class="reference internal" href="c-api/intro.html">概述</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#coding-standards">代码标准</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#include-files">包含文件</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#useful-macros">有用的宏</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#objects-types-and-reference-counts">对象、类型和引用计数</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/intro.html#reference-counts">引用计数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/intro.html#reference-count-details">Reference Count Details</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/intro.html#types">类型</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#exceptions">异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#embedding-python">嵌入Python</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/intro.html#debugging-builds">调试构建</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/stable.html">稳定的应用程序二进制接口</a></li>
<li class="toctree-l2"><a class="reference internal" href="c-api/veryhigh.html">The Very High Level Layer</a></li>
<li class="toctree-l2"><a class="reference internal" href="c-api/refcounting.html">Reference Counting</a></li>
<li class="toctree-l2"><a class="reference internal" href="c-api/exceptions.html">异常处理</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#printing-and-clearing">Printing and clearing</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#raising-exceptions">抛出异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#issuing-warnings">Issuing warnings</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#querying-the-error-indicator">Querying the error indicator</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#signal-handling">Signal Handling</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#exception-classes">Exception Classes</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#exception-objects">Exception Objects</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#unicode-exception-objects">Unicode Exception Objects</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#recursion-control">Recursion Control</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#standard-exceptions">Standard Exceptions</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/exceptions.html#standard-warning-categories">Standard Warning Categories</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/utilities.html">工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/sys.html">Operating System Utilities</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/sys.html#system-functions">System Functions</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/sys.html#process-control">Process Control</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/import.html">导入模块</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/marshal.html">Data marshalling support</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/arg.html">语句解释及变量编译</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/arg.html#parsing-arguments">解析参数</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/arg.html#strings-and-buffers">字符串和缓存区</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/arg.html#numbers">数字</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/arg.html#other-objects">其他对象</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/arg.html#api-functions">API 函数</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/arg.html#building-values">创建变量</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/conversion.html">字符串转换与格式化</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/reflection.html">反射</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/codec.html">编解码器注册与支持功能</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/codec.html#codec-lookup-api">Codec lookup API</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/codec.html#registry-api-for-unicode-encoding-error-handlers">Registry API for Unicode encoding error handlers</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/abstract.html">抽象对象层</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/object.html">Object Protocol</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/number.html">数字协议</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/sequence.html">Sequence Protocol</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/mapping.html">Mapping Protocol</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/iter.html">迭代器协议</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/buffer.html">缓冲协议</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/buffer.html#buffer-structure">Buffer structure</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/buffer.html#buffer-request-types">Buffer request types</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#request-independent-fields">request-independent fields</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#readonly-format">readonly, format</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#shape-strides-suboffsets">shape, strides, suboffsets</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#contiguity-requests">contiguity requests</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#compound-requests">compound requests</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/buffer.html#complex-arrays">Complex arrays</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#numpy-style-shape-and-strides">NumPy-style: shape and strides</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/buffer.html#pil-style-shape-strides-and-suboffsets">PIL-style: shape, strides and suboffsets</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/buffer.html#buffer-related-functions">Buffer-related functions</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/objbuffer.html">Old Buffer Protocol</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/concrete.html">Concrete Objects Layer</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#fundamental-objects">基本对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/type.html">Type 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/none.html"><code class="docutils literal notranslate"><span class="pre">None</span></code> 对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#numeric-objects">Numeric Objects</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/long.html">Integer Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/bool.html">布尔对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/float.html">浮点数对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/complex.html">复数对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/complex.html#complex-numbers-as-c-structures">表示复数的C结构体</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/complex.html#complex-numbers-as-python-objects">表示复数的Python对象</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#sequence-objects">序列对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/bytes.html">字节对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/bytearray.html">字节数组对象</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/bytearray.html#type-check-macros">类型检查宏</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/bytearray.html#direct-api-functions">直接 API 函数</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/bytearray.html#macros">宏</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/unicode.html">Unicode Objects and Codecs</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/unicode.html#unicode-objects">Unicode Objects</a><ul>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#unicode-type">Unicode Type</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#unicode-character-properties">Unicode Character Properties</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#creating-and-accessing-unicode-strings">Creating and accessing Unicode strings</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#deprecated-py-unicode-apis">Deprecated Py_UNICODE APIs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#locale-encoding">Locale Encoding</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#file-system-encoding">File System Encoding</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#wchar-t-support">wchar_t Support</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="c-api/unicode.html#built-in-codecs">Built-in Codecs</a><ul>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#generic-codecs">Generic Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#utf-8-codecs">UTF-8 Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#utf-32-codecs">UTF-32 Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#utf-16-codecs">UTF-16 Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#utf-7-codecs">UTF-7 Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#unicode-escape-codecs">Unicode-Escape Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#raw-unicode-escape-codecs">Raw-Unicode-Escape Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#latin-1-codecs">Latin-1 Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#ascii-codecs">ASCII Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#character-map-codecs">Character Map Codecs</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#mbcs-codecs-for-windows">MBCS codecs for Windows</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/unicode.html#methods-slots">Methods &amp; Slots</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="c-api/unicode.html#methods-and-slot-functions">Methods and Slot Functions</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/tuple.html">元组对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/tuple.html#struct-sequence-objects">Struct Sequence Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/list.html">列表对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#container-objects">容器对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/dict.html">字典对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/set.html">集合对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#function-objects">函数对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/function.html">函数对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/method.html">实例方法对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/method.html#method-objects">方法对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/cell.html">Cell 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/code.html">代码对象</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/concrete.html#other-objects">其他对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/file.html">文件对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/module.html">Module Objects</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/module.html#initializing-c-modules">Initializing C modules</a><ul>
<li class="toctree-l6"><a class="reference internal" href="c-api/module.html#single-phase-initialization">Single-phase initialization</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/module.html#multi-phase-initialization">Multi-phase initialization</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/module.html#low-level-module-creation-functions">Low-level module creation functions</a></li>
<li class="toctree-l6"><a class="reference internal" href="c-api/module.html#support-functions">Support functions</a></li>
</ul>
</li>
<li class="toctree-l5"><a class="reference internal" href="c-api/module.html#module-lookup">Module lookup</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/iterator.html">迭代器对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/descriptor.html">描述符对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/slice.html">Slice Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/slice.html#ellipsis-object">Ellipsis Object</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/memoryview.html">MemoryView 对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/weakref.html">Weak Reference Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/capsule.html">胶囊</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/gen.html">生成器对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/coro.html">协程对象</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/contextvars.html">Context Variables Objects</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/datetime.html">DateTime 对象</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/init.html">Initialization, Finalization, and Threads</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#before-python-initialization">Before Python Initialization</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#global-configuration-variables">Global configuration variables</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#initializing-and-finalizing-the-interpreter">Initializing and finalizing the interpreter</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#process-wide-parameters">Process-wide parameters</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#thread-state-and-the-global-interpreter-lock">Thread State and the Global Interpreter Lock</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#releasing-the-gil-from-extension-code">Releasing the GIL from extension code</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#non-python-created-threads">Non-Python created threads</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#high-level-api">High-level API</a></li>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#low-level-api">Low-level API</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#sub-interpreter-support">Sub-interpreter support</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#bugs-and-caveats">Bugs and caveats</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#asynchronous-notifications">Asynchronous Notifications</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#profiling-and-tracing">Profiling and Tracing</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#advanced-debugger-support">Advanced Debugger Support</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/init.html#thread-local-storage-support">Thread Local Storage Support</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#thread-specific-storage-tss-api">Thread Specific Storage (TSS) API</a><ul>
<li class="toctree-l5"><a class="reference internal" href="c-api/init.html#dynamic-allocation">Dynamic Allocation</a></li>
<li class="toctree-l5"><a class="reference internal" href="c-api/init.html#methods">方法</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="c-api/init.html#thread-local-storage-tls-api">Thread Local Storage (TLS) API</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/memory.html">内存管理</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#overview">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#raw-memory-interface">原始内存接口</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#memory-interface">Memory Interface</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#object-allocators">Object allocators</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#default-memory-allocators">Default Memory Allocators</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#customize-memory-allocators">Customize Memory Allocators</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#the-pymalloc-allocator">The pymalloc allocator</a><ul>
<li class="toctree-l4"><a class="reference internal" href="c-api/memory.html#customize-pymalloc-arena-allocator">Customize pymalloc Arena Allocator</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#tracemalloc-c-api">tracemalloc C API</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/memory.html#examples">示例</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/objimpl.html">对象实现支持</a><ul>
<li class="toctree-l3"><a class="reference internal" href="c-api/allocation.html">在堆中分配对象</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/structures.html">Common Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html">Type 对象</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html#number-object-structures">Number Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html#mapping-object-structures">Mapping Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html#sequence-object-structures">Sequence Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html#buffer-object-structures">Buffer Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/typeobj.html#async-object-structures">Async Object Structures</a></li>
<li class="toctree-l3"><a class="reference internal" href="c-api/gcsupport.html">Supporting Cyclic Garbage Collection</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="c-api/apiabiversion.html">API 和 ABI 版本管理</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="distributing/index.html">分发 Python 模块</a><ul>
<li class="toctree-l2"><a class="reference internal" href="distributing/index.html#key-terms">关键术语</a></li>
<li class="toctree-l2"><a class="reference internal" href="distributing/index.html#open-source-licensing-and-collaboration">开源许可与协作</a></li>
<li class="toctree-l2"><a class="reference internal" href="distributing/index.html#installing-the-tools">安装工具</a></li>
<li class="toctree-l2"><a class="reference internal" href="distributing/index.html#reading-the-guide">阅读指南</a></li>
<li class="toctree-l2"><a class="reference internal" href="distributing/index.html#how-do-i">我该如何...？</a><ul>
<li class="toctree-l3"><a class="reference internal" href="distributing/index.html#choose-a-name-for-my-project">...为我的项目选择一个名字？</a></li>
<li class="toctree-l3"><a class="reference internal" href="distributing/index.html#create-and-distribute-binary-extensions">...创建和分发二进制扩展？</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="installing/index.html">安装 Python 模块</a><ul>
<li class="toctree-l2"><a class="reference internal" href="installing/index.html#key-terms">关键术语</a></li>
<li class="toctree-l2"><a class="reference internal" href="installing/index.html#basic-usage">基本使用</a></li>
<li class="toctree-l2"><a class="reference internal" href="installing/index.html#how-do-i">我应如何 ...？</a><ul>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#install-pip-in-versions-of-python-prior-to-python-3-4">... 在 Python 3.4 之前的 Python 版本中安装 <code class="docutils literal notranslate"><span class="pre">pip</span></code> ？</a></li>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#install-packages-just-for-the-current-user">... 只为当前用户安装软件包？</a></li>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#install-scientific-python-packages">... 安装科学计算类 Python 软件包？</a></li>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#work-with-multiple-versions-of-python-installed-in-parallel">... 使用并行安装的多个 Python 版本？</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="installing/index.html#common-installation-issues">常见的安装问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#installing-into-the-system-python-on-linux">在 Linux 的系统 Python 版本上安装</a></li>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#pip-not-installed">未安装 pip</a></li>
<li class="toctree-l3"><a class="reference internal" href="installing/index.html#installing-binary-extensions">安装二进制编译扩展</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="howto/index.html">Python 常用指引</a><ul>
<li class="toctree-l2"><a class="reference internal" href="howto/pyporting.html">将 Python 2 代码迁移到 Python 3</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/pyporting.html#the-short-explanation">简要说明</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/pyporting.html#details">详情</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#drop-support-for-python-2-6-and-older">Drop support for Python 2.6 and older</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#make-sure-you-specify-the-proper-version-support-in-your-setup-py-file">Make sure you specify the proper version support in your <code class="docutils literal notranslate"><span class="pre">setup.py</span></code> file</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#have-good-test-coverage">Have good test coverage</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#learn-the-differences-between-python-2-3">Learn the differences between Python 2 &amp; 3</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#update-your-code">Update your code</a><ul>
<li class="toctree-l5"><a class="reference internal" href="howto/pyporting.html#division">Division</a></li>
<li class="toctree-l5"><a class="reference internal" href="howto/pyporting.html#text-versus-binary-data">Text versus binary data</a></li>
<li class="toctree-l5"><a class="reference internal" href="howto/pyporting.html#use-feature-detection-instead-of-version-detection">Use feature detection instead of version detection</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#prevent-compatibility-regressions">Prevent compatibility regressions</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#check-which-dependencies-block-your-transition">Check which dependencies block your transition</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#update-your-setup-py-file-to-denote-python-3-compatibility">Update your <code class="docutils literal notranslate"><span class="pre">setup.py</span></code> file to denote Python 3 compatibility</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#use-continuous-integration-to-stay-compatible">Use continuous integration to stay compatible</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/pyporting.html#consider-using-optional-static-type-checking">Consider using optional static type checking</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/cporting.html">将扩展模块移植到 Python 3</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/cporting.html#conditional-compilation">条件编译</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/cporting.html#changes-to-object-apis">对象API的更改</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/cporting.html#str-unicode-unification">str/unicode 统一</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/cporting.html#long-int-unification">long/int 统一</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/cporting.html#module-initialization-and-state">模块初始化和状态</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/cporting.html#cobject-replaced-with-capsule">CObject 替换为 Capsule</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/cporting.html#other-options">其他选项</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/curses.html">Curses Programming with Python</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#what-is-curses">What is curses?</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/curses.html#the-python-curses-module">The Python curses module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#starting-and-ending-a-curses-application">Starting and ending a curses application</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#windows-and-pads">Windows and Pads</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#displaying-text">Displaying Text</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/curses.html#attributes-and-color">Attributes and Color</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#user-input">User Input</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/curses.html#for-more-information">For More Information</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/descriptor.html">实现描述器</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#abstract">摘要</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#definition-and-introduction">定义和简介</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#descriptor-protocol">描述器协议</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#invoking-descriptors">发起调用描述符</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#descriptor-example">Descriptor Example</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#properties">Properties</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#functions-and-methods">函数和方法</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/descriptor.html#static-methods-and-class-methods">Static Methods and Class Methods</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/functional.html">函数式编程指引</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#introduction">概述</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#formal-provability">形式证明</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#modularity">模块化</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#ease-of-debugging-and-testing">易于调试和测试</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#composability">组合性</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#iterators">迭代器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#data-types-that-support-iterators">支持迭代器的数据类型</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#generator-expressions-and-list-comprehensions">生成器表达式和列表推导式</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#generators">生成器</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#passing-values-into-a-generator">向生成器传递值</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#built-in-functions">内置函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#the-itertools-module">itertools 模块</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#creating-new-iterators">创建新的迭代器</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#calling-functions-on-elements">Calling functions on elements</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#selecting-elements">Selecting elements</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#combinatoric-functions">Combinatoric functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#grouping-elements">Grouping elements</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#the-functools-module">The functools module</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#the-operator-module">The operator module</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#small-functions-and-the-lambda-expression">Small functions and the lambda expression</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#revision-history-and-acknowledgements">Revision History and Acknowledgements</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/functional.html#references">引用文献</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#general">通用文献</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#python-specific">Python 相关</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/functional.html#python-documentation">Python 文档</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/logging.html">日志 HOWTO</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#basic-logging-tutorial">日志基础教程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#when-to-use-logging">什么时候使用日志</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#a-simple-example">一个简单的例子</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#logging-to-a-file">记录日志到文件</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#logging-from-multiple-modules">从多个模块记录日志</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#logging-variable-data">记录变量数据</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#changing-the-format-of-displayed-messages">更改显示消息的格式</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#displaying-the-date-time-in-messages">在消息中显示日期/时间</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#next-steps">后续步骤</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#advanced-logging-tutorial">进阶日志教程</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#logging-flow">记录流程</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#loggers">记录器</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#handlers">处理程序</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#formatters">格式化程序</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#configuring-logging">配置日志记录</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#what-happens-if-no-configuration-is-provided">如果没有提供配置会发生什么</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#configuring-logging-for-a-library">配置库的日志记录</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#logging-levels">日志级别</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/logging.html#custom-levels">自定义级别</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#useful-handlers">有用的处理程序</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#exceptions-raised-during-logging">记录日志中引发的异常</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#using-arbitrary-objects-as-messages">使用任意对象作为消息</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging.html#optimization">优化</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/logging-cookbook.html">日志操作手册</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#using-logging-in-multiple-modules">在多个模块中使用日志</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#logging-from-multiple-threads">在多线程中使用日志</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#multiple-handlers-and-formatters">使用多个日志处理器和多种格式化</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#logging-to-multiple-destinations">在多个地方记录日志</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#configuration-server-example">日志服务器配置示例</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#dealing-with-handlers-that-block">处理日志处理器的阻塞</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#sending-and-receiving-logging-events-across-a-network">Sending and receiving logging events across a network</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#adding-contextual-information-to-your-logging-output">Adding contextual information to your logging output</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/logging-cookbook.html#using-loggeradapters-to-impart-contextual-information">Using LoggerAdapters to impart contextual information</a><ul>
<li class="toctree-l5"><a class="reference internal" href="howto/logging-cookbook.html#using-objects-other-than-dicts-to-pass-contextual-information">Using objects other than dicts to pass contextual information</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging-cookbook.html#using-filters-to-impart-contextual-information">Using Filters to impart contextual information</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes">Logging to a single file from multiple processes</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#using-file-rotation">Using file rotation</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#use-of-alternative-formatting-styles">Use of alternative formatting styles</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#customizing-logrecord">Customizing <code class="docutils literal notranslate"><span class="pre">LogRecord</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#subclassing-queuehandler-a-zeromq-example">Subclassing QueueHandler - a ZeroMQ example</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#subclassing-queuelistener-a-zeromq-example">Subclassing QueueListener - a ZeroMQ example</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#an-example-dictionary-based-configuration">An example dictionary-based configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#using-a-rotator-and-namer-to-customize-log-rotation-processing">Using a rotator and namer to customize log rotation processing</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#a-more-elaborate-multiprocessing-example">A more elaborate multiprocessing example</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#inserting-a-bom-into-messages-sent-to-a-sysloghandler">Inserting a BOM into messages sent to a SysLogHandler</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#implementing-structured-logging">Implementing structured logging</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#customizing-handlers-with-dictconfig">Customizing handlers with <code class="docutils literal notranslate"><span class="pre">dictConfig()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#using-particular-formatting-styles-throughout-your-application">Using particular formatting styles throughout your application</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/logging-cookbook.html#using-logrecord-factories">Using LogRecord factories</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/logging-cookbook.html#using-custom-message-objects">Using custom message objects</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#configuring-filters-with-dictconfig">Configuring filters with <code class="docutils literal notranslate"><span class="pre">dictConfig()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#customized-exception-formatting">Customized exception formatting</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#speaking-logging-messages">Speaking logging messages</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#buffering-logging-messages-and-outputting-them-conditionally">Buffering logging messages and outputting them conditionally</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#formatting-times-using-utc-gmt-via-configuration">Formatting times using UTC (GMT) via configuration</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/logging-cookbook.html#using-a-context-manager-for-selective-logging">Using a context manager for selective logging</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/regex.html">正则表达式HOWTO</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#introduction">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#simple-patterns">简单模式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#matching-characters">匹配字符</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#repeating-things">重复</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#using-regular-expressions">使用正则表达式</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#compiling-regular-expressions">编译正则表达式</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#the-backslash-plague">反斜杠灾难</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#performing-matches">应用匹配</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#module-level-functions">模块级别函数</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#compilation-flags">编译标志</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#more-pattern-power">更多模式能力</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#more-metacharacters">更多元字符</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#grouping">分组</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#non-capturing-and-named-groups">非捕获和命名组</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#lookahead-assertions">前向断言</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#modifying-strings">修改字符串</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#splitting-strings">分割字符串</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#search-and-replace">搜索和替换</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#common-problems">常见问题</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#use-string-methods">使用字符串方法</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#match-versus-search">match() 和 search()</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#greedy-versus-non-greedy">贪婪与非贪婪</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/regex.html#using-re-verbose">使用 re.VERBOSE</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/regex.html#feedback">反馈</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/sockets.html">套接字编程指南</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/sockets.html#sockets">套接字</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/sockets.html#history">历史</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/sockets.html#creating-a-socket">创建套接字</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/sockets.html#ipc">进程间通信</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/sockets.html#using-a-socket">使用一个套接字</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/sockets.html#binary-data">二进制数据</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/sockets.html#disconnecting">断开连接</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/sockets.html#when-sockets-die">套接字何时销毁</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/sockets.html#non-blocking-sockets">非阻塞的套接字</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/sorting.html">排序指南</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#sorting-basics">基本排序</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#key-functions">关键函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#operator-module-functions">Operator 模块函数</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#ascending-and-descending">升序和降序</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#sort-stability-and-complex-sorts">排序稳定性和排序复杂度</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#the-old-way-using-decorate-sort-undecorate">使用装饰-排序-去装饰的旧方法</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#the-old-way-using-the-cmp-parameter">使用 <em>cmp</em> 参数的旧方法</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/sorting.html#odd-and-ends">其它</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/unicode.html">Unicode 指南</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/unicode.html#introduction-to-unicode">Unicode 概述</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#definitions">定义</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#encodings">Encodings</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#references">引用文献</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/unicode.html#python-s-unicode-support">Python's Unicode Support</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#the-string-type">The String Type</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#converting-to-bytes">Converting to Bytes</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#unicode-literals-in-python-source-code">Unicode Literals in Python Source Code</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#unicode-properties">Unicode Properties</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#comparing-strings">Comparing Strings</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#unicode-regular-expressions">Unicode Regular Expressions</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#id2">引用文献</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/unicode.html#reading-and-writing-unicode-data">Reading and Writing Unicode Data</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#unicode-filenames">Unicode filenames</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#tips-for-writing-unicode-aware-programs">Tips for Writing Unicode-aware Programs</a><ul>
<li class="toctree-l5"><a class="reference internal" href="howto/unicode.html#converting-between-file-encodings">Converting Between File Encodings</a></li>
<li class="toctree-l5"><a class="reference internal" href="howto/unicode.html#files-in-an-unknown-encoding">Files in an Unknown Encoding</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="howto/unicode.html#id3">引用文献</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/unicode.html#acknowledgements">Acknowledgements</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/urllib2.html">如何使用urllib包获取网络资源</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#introduction">概述</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#fetching-urls">Fetching URLs</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/urllib2.html#data">Data</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/urllib2.html#headers">Headers</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#handling-exceptions">处理异常</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/urllib2.html#urlerror">URLError</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/urllib2.html#httperror">HTTPError</a><ul>
<li class="toctree-l5"><a class="reference internal" href="howto/urllib2.html#error-codes">Error Codes</a></li>
</ul>
</li>
<li class="toctree-l4"><a class="reference internal" href="howto/urllib2.html#wrapping-it-up">Wrapping it Up</a><ul>
<li class="toctree-l5"><a class="reference internal" href="howto/urllib2.html#number-1">Number 1</a></li>
<li class="toctree-l5"><a class="reference internal" href="howto/urllib2.html#number-2">Number 2</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#info-and-geturl">info and geturl</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#openers-and-handlers">Openers and Handlers</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#id5">Basic Authentication</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#proxies">Proxies</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#sockets-and-layers">Sockets and Layers</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/urllib2.html#footnotes">脚注</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/argparse.html">Argparse 教程</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#concepts">概念</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#the-basics">基础</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#introducing-positional-arguments">位置参数介绍</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#introducing-optional-arguments">Introducing Optional arguments</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/argparse.html#short-options">Short options</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#combining-positional-and-optional-arguments">Combining Positional and Optional arguments</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#getting-a-little-more-advanced">Getting a little more advanced</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/argparse.html#conflicting-options">Conflicting options</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/argparse.html#conclusion">Conclusion</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/ipaddress.html">ipaddress模块介绍</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#creating-address-network-interface-objects">创建 Address/Network/Interface 对象</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/ipaddress.html#a-note-on-ip-versions">关于IP版本的说明</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/ipaddress.html#ip-host-addresses">IP主机地址</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/ipaddress.html#defining-networks">定义网络</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/ipaddress.html#host-interfaces">主机接口</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#inspecting-address-network-interface-objects">审查 Address/Network/Interface 对象</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#networks-as-lists-of-addresses">Network 作为 Address 列表</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#comparisons">比较</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#using-ip-addresses-with-other-modules">将IP地址与其他模块一起使用</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/ipaddress.html#getting-more-detail-when-instance-creation-fails">实例创建失败时获取更多详细信息</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/clinic.html">Argument Clinic How-To</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/clinic.html#the-goals-of-argument-clinic">The Goals Of Argument Clinic</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/clinic.html#basic-concepts-and-usage">Basic Concepts And Usage</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/clinic.html#converting-your-first-function">Converting Your First Function</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/clinic.html#advanced-topics">Advanced Topics</a><ul>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#symbolic-default-values">Symbolic default values</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#renaming-the-c-functions-and-variables-generated-by-argument-clinic">Renaming the C functions and variables generated by Argument Clinic</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#converting-functions-using-pyarg-unpacktuple">Converting functions using PyArg_UnpackTuple</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#optional-groups">Optional Groups</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#using-real-argument-clinic-converters-instead-of-legacy-converters">Using real Argument Clinic converters, instead of &quot;legacy converters&quot;</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#py-buffer">Py_buffer</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#advanced-converters">Advanced converters</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#parameter-default-values">Parameter default values</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#the-null-default-value">The <code class="docutils literal notranslate"><span class="pre">NULL</span></code> default value</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#expressions-specified-as-default-values">Expressions specified as default values</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#using-a-return-converter">Using a return converter</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#cloning-existing-functions">Cloning existing functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#calling-python-code">Calling Python code</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#using-a-self-converter">Using a &quot;self converter&quot;</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#writing-a-custom-converter">Writing a custom converter</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#writing-a-custom-return-converter">Writing a custom return converter</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#meth-o-and-meth-noargs">METH_O and METH_NOARGS</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#tp-new-and-tp-init-functions">tp_new and tp_init functions</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#changing-and-redirecting-clinic-s-output">Changing and redirecting Clinic's output</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#the-ifdef-trick">The #ifdef trick</a></li>
<li class="toctree-l4"><a class="reference internal" href="howto/clinic.html#using-argument-clinic-in-python-files">Using Argument Clinic in Python files</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="howto/instrumentation.html">使用 DTrace 和 SystemTap 检测CPython</a><ul>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#enabling-the-static-markers">Enabling the static markers</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#static-dtrace-probes">Static DTrace probes</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#static-systemtap-markers">Static SystemTap markers</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#available-static-markers">Available static markers</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#systemtap-tapsets">SystemTap Tapsets</a></li>
<li class="toctree-l3"><a class="reference internal" href="howto/instrumentation.html#examples">示例</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="faq/index.html">Python 常见问题</a><ul>
<li class="toctree-l2"><a class="reference internal" href="faq/general.html">Python常见问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/general.html#general-information">一般信息</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/general.html#python-in-the-real-world">现实世界中的 Python</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/programming.html">编程常见问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#general-questions">一般问题</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#core-language">Core Language</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#numbers-and-strings">Numbers and strings</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#performance">Performance</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#sequences-tuples-lists">Sequences (Tuples/Lists)</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#objects">Objects</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/programming.html#modules">模块</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/design.html">设计和历史常见问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-does-python-use-indentation-for-grouping-of-statements">为什么Python使用缩进来分组语句？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-am-i-getting-strange-results-with-simple-arithmetic-operations">为什么简单的算术运算得到奇怪的结果？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-are-floating-point-calculations-so-inaccurate">为什么浮点计算不准确？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-are-python-strings-immutable">为什么Python字符串是不可变的？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-must-self-be-used-explicitly-in-method-definitions-and-calls">为什么必须在方法定义和调用中显式使用“self”？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-can-t-i-use-an-assignment-in-an-expression">为什么不能在表达式中赋值？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list">为什么Python对某些功能（例如list.index()）使用方法来实现，而其他功能（例如len(List)）使用函数实现？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-is-join-a-string-method-instead-of-a-list-or-tuple-method">为什么 join()是一个字符串方法而不是列表或元组方法？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#how-fast-are-exceptions">异常有多快？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-isn-t-there-a-switch-or-case-statement-in-python">为什么Python中没有switch或case语句？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#can-t-you-emulate-threads-in-the-interpreter-instead-of-relying-on-an-os-specific-thread-implementation">难道不能在解释器中模拟线程，而非得依赖特定于操作系统的线程实现吗？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-can-t-lambda-expressions-contain-statements">为什么lambda表达式不能包含语句？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#can-python-be-compiled-to-machine-code-c-or-some-other-language">可以将Python编译为机器代码，C或其他语言吗？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#how-does-python-manage-memory">Python如何管理内存？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-doesn-t-cpython-use-a-more-traditional-garbage-collection-scheme">为什么CPython不使用更传统的垃圾回收方案？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-isn-t-all-memory-freed-when-cpython-exits">CPython退出时为什么不释放所有内存？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-are-there-separate-tuple-and-list-data-types">为什么有单独的元组和列表数据类型？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#how-are-lists-implemented-in-cpython">列表是如何在CPython中实现的？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#how-are-dictionaries-implemented-in-cpython">字典是如何在CPython中实现的？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-must-dictionary-keys-be-immutable">为什么字典key必须是不可变的？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-doesn-t-list-sort-return-the-sorted-list">为什么 list.sort() 没有返回排序列表？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#how-do-you-specify-and-enforce-an-interface-spec-in-python">如何在Python中指定和实施接口规范？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-is-there-no-goto">为什么没有goto？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash">为什么原始字符串（r-strings）不能以反斜杠结尾？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-doesn-t-python-have-a-with-statement-for-attribute-assignments">为什么Python没有属性赋值的“with”语句？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements">为什么 if/while/def/class语句需要冒号？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples">为什么Python在列表和元组的末尾允许使用逗号？</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/library.html">代码库和插件 FAQ</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#general-library-questions">通用的代码库问题</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#common-tasks">通用任务</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#threads">线程相关</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#input-and-output">输入输出</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#network-internet-programming">网络 / Internet 编程</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#databases">数据库</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/library.html#mathematics-and-numerics">数学和数字</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/extending.html">Extending/Embedding FAQ</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#can-i-create-my-own-functions-in-c">Can I create my own functions in C?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#id2">Can I create my own functions in C++?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#writing-c-is-hard-are-there-any-alternatives">Writing C is hard; are there any alternatives?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-can-i-execute-arbitrary-python-statements-from-c">How can I execute arbitrary Python statements from C?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-can-i-evaluate-an-arbitrary-python-expression-from-c">How can I evaluate an arbitrary Python expression from C?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-extract-c-values-from-a-python-object">How do I extract C values from a Python object?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-use-py-buildvalue-to-create-a-tuple-of-arbitrary-length">How do I use Py_BuildValue() to create a tuple of arbitrary length?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-call-an-object-s-method-from-c">How do I call an object's method from C?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-catch-the-output-from-pyerr-print-or-anything-that-prints-to-stdout-stderr">How do I catch the output from PyErr_Print() (or anything that prints to stdout/stderr)?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-access-a-module-written-in-python-from-c">How do I access a module written in Python from C?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-interface-to-c-objects-from-python">How do I interface to C++ objects from Python?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#i-added-a-module-using-the-setup-file-and-the-make-fails-why">I added a module using the Setup file and the make fails; why?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-debug-an-extension">How do I debug an extension?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#i-want-to-compile-a-python-module-on-my-linux-system-but-some-files-are-missing-why">I want to compile a Python module on my Linux system, but some files are missing. Why?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-tell-incomplete-input-from-invalid-input">How do I tell &quot;incomplete input&quot; from &quot;invalid input&quot;?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#how-do-i-find-undefined-g-symbols-builtin-new-or-pure-virtual">How do I find undefined g++ symbols __builtin_new or __pure_virtual?</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/extending.html#can-i-create-an-object-class-with-some-methods-implemented-in-c-and-others-in-python-e-g-through-inheritance">Can I create an object class with some methods implemented in C and others in Python (e.g. through inheritance)?</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/windows.html">Python在Windows上的常见问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-do-i-run-a-python-program-under-windows">我怎样在Windows下运行一个Python程序？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-do-i-make-python-scripts-executable">我怎么让 Python 脚本可执行？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#why-does-python-sometimes-take-so-long-to-start">为什么有时候 Python 程序会启动缓慢？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-do-i-make-an-executable-from-a-python-script">我怎样使用Python脚本制作可执行文件？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#is-a-pyd-file-the-same-as-a-dll"><code class="docutils literal notranslate"><span class="pre">*.pyd</span></code> 文件和DLL文件相同吗？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-can-i-embed-python-into-a-windows-application">我怎样将Python嵌入一个Windows程序？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-do-i-keep-editors-from-inserting-tabs-into-my-python-source">如何让编辑器不要在我的 Python 源代码中插入 tab ？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/windows.html#how-do-i-check-for-a-keypress-without-blocking">如何在不阻塞的情况下检查按键？</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/gui.html">图形用户界面（GUI）常见问题</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/gui.html#general-gui-questions">图形界面常见问题</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/gui.html#what-platform-independent-gui-toolkits-exist-for-python">Python 是否有平台无关的图形界面工具包？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/gui.html#what-platform-specific-gui-toolkits-exist-for-python">有哪些Python的GUI工具是某个平台专用的？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/gui.html#tkinter-questions">有关Tkinter的问题</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="faq/installed.html">“为什么我的电脑上安装了 Python ？”</a><ul>
<li class="toctree-l3"><a class="reference internal" href="faq/installed.html#what-is-python">什么是Python？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/installed.html#why-is-python-installed-on-my-machine">为什么我的电脑上安装了 Python ？</a></li>
<li class="toctree-l3"><a class="reference internal" href="faq/installed.html#can-i-delete-python">我能删除 Python 吗？</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="glossary.html">术语表</a></li>
<li class="toctree-l1"><a class="reference internal" href="about.html">文档说明</a><ul>
<li class="toctree-l2"><a class="reference internal" href="about.html#contributors-to-the-python-documentation">Python 文档贡献者</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="bugs.html">处理错误</a><ul>
<li class="toctree-l2"><a class="reference internal" href="bugs.html#documentation-bugs">文档错误</a></li>
<li class="toctree-l2"><a class="reference internal" href="bugs.html#using-the-python-issue-tracker">使用 Python 的错误追踪系统</a></li>
<li class="toctree-l2"><a class="reference internal" href="bugs.html#getting-started-contributing-to-python-yourself">开始为 Python 贡献您的知识</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="copyright.html">版权</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">历史和许可证</a><ul>
<li class="toctree-l2"><a class="reference internal" href="license.html#history-of-the-software">软件历史</a></li>
<li class="toctree-l2"><a class="reference internal" href="license.html#terms-and-conditions-for-accessing-or-otherwise-using-python">访问Python或以其他方式使用Python的条款和条件</a><ul>
<li class="toctree-l3"><a class="reference internal" href="license.html#psf-license-agreement-for-python-release">PSF LICENSE AGREEMENT FOR PYTHON 3.7.3</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#beopen-com-license-agreement-for-python-2-0">BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#cnri-license-agreement-for-python-1-6-1">CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#cwi-license-agreement-for-python-0-9-0-through-1-2">CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="license.html#licenses-and-acknowledgements-for-incorporated-software">Licenses and Acknowledgements for Incorporated Software</a><ul>
<li class="toctree-l3"><a class="reference internal" href="license.html#mersenne-twister">Mersenne Twister</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#sockets">套接字</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#asynchronous-socket-services">Asynchronous socket services</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#cookie-management">Cookie management</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#execution-tracing">Execution tracing</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#uuencode-and-uudecode-functions">UUencode and UUdecode functions</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#xml-remote-procedure-calls">XML Remote Procedure Calls</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#test-epoll">test_epoll</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#select-kqueue">Select kqueue</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#siphash24">SipHash24</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#strtod-and-dtoa">strtod and dtoa</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#openssl">OpenSSL</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#expat">expat</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#libffi">libffi</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#zlib">zlib</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#cfuhash">cfuhash</a></li>
<li class="toctree-l3"><a class="reference internal" href="license.html#libmpdec">libmpdec</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="toctree-wrapper compound">
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>下一个主题</h4>
  <p class="topless"><a href="whatsnew/index.html"
                        title="下一章">Python 有什么新变化？</a></p>
  <div role="note" aria-label="source link">
    <h3>本页</h3>
    <ul class="this-page-menu">
      <li><a href="bugs.html">提交 Bug</a></li>
      <li>
        <a href="https://github.com/python/cpython/blob/3.7/Doc/contents.rst"
            rel="nofollow">显示源代码
        </a>
      </li>
    </ul>
  </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>  
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>导航</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="总目录"
             >索引</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python 模块索引"
             >模块</a> |</li>
        <li class="right" >
          <a href="whatsnew/index.html" title="Python 有什么新变化？"
             >下一页</a> |</li>
        <li><img src="_static/py.png" alt=""
                 style="vertical-align: middle; margin-top: -1px"/></li>
        <li><a href="https://www.python.org/">Python</a> &#187;</li>
        <li>
          <span class="language_switcher_placeholder">zh_CN</span>
          <span class="version_switcher_placeholder">3.7.3</span>
          <a href="index.html">文档</a> &#187;
        </li>

    <li class="right">
        

    <div class="inline-search" style="display: none" role="search">
        <form class="inline-search" action="search.html" method="get">
          <input placeholder="快速搜索" type="text" name="q" />
          <input type="submit" value="转向" />
          <input type="hidden" name="check_keywords" value="yes" />
          <input type="hidden" name="area" value="default" />
        </form>
    </div>
    <script type="text/javascript">$('.inline-search').show(0);</script>
         |
    </li>

      </ul>
    </div>  
    <div class="footer">
    &copy; <a href="copyright.html">版权所有</a> 2001-2019, Python Software Foundation.
    <br />
    Python 软件基金会是一个非盈利组织。
    <a href="https://www.python.org/psf/donations/">请捐助。</a>
    <br />
    最后更新于 4月 09, 2019.
    <a href="bugs.html">发现了问题</a>？
    <br />
    使用<a href="http://sphinx.pocoo.org/">Sphinx</a>1.8.4 创建。
    </div>

  </body>
</html>